You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'd like to hear opinions from pybind11 contributors (and other binding maintainers) on PEP 793
What is this? I propose a new way to initialize C extension modules: rather than the current PyInit_* function, you would define PyModExport_*. Rather than returning a module object or PyModuleDef, this function would return a C array of slots (same info as in a PyModuleDef, but laid out differently).
This change is needed to support stable ABI for free-threaded CPython builds without hacks. See the PEP for the rationale and all the details.
For pybind11, this doesn't look too applicable since y'all don't support Stable ABI, but it would be something to keep in mind if/when you do and/or when you drop CPython 3.14.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'd like to hear opinions from pybind11 contributors (and other binding maintainers) on PEP 793
What is this? I propose a new way to initialize C extension modules: rather than the current
PyInit_*
function, you would definePyModExport_*
. Rather than returning a module object orPyModuleDef
, this function would return a C array of slots (same info as in aPyModuleDef
, but laid out differently).This change is needed to support stable ABI for free-threaded CPython builds without hacks. See the PEP for the rationale and all the details.
For pybind11, this doesn't look too applicable since y'all don't support Stable ABI, but it would be something to keep in mind if/when you do and/or when you drop CPython 3.14.
If you have any comments, please reply here, or on the PEP's discussion thread.
Thanks for your time,
Petr
Beta Was this translation helpful? Give feedback.
All reactions