◐ Shell
clean mode source ↗

gh-140550: allow slots that repeat information from PyModuleDef by encukou · Pull Request #144340 · python/cpython

When integrating slots-based module creation is with the inittab,
which currently requires PyModuleDef, it would be convenient to
reuse the the same slots array for the MethodDef.

Allow slots that match what's already present in the PyModuleDef.

@encukou encukou marked this pull request as ready for review

January 30, 2026 15:23

encukou

encukou

@encukou

vstinner

thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request

Feb 15, 2026
…pythonGH-144340)

When integrating slots-based module creation is with the inittab,
which currently requires PyModuleDef, it would be convenient to
reuse the the same slots array for the MethodDef.

Allow slots that match what's already present in the PyModuleDef.

ljfp pushed a commit to ljfp/cpython that referenced this pull request

Apr 25, 2026
…pythonGH-144340)

When integrating slots-based module creation is with the inittab,
which currently requires PyModuleDef, it would be convenient to
reuse the the same slots array for the MethodDef.

Allow slots that match what's already present in the PyModuleDef.