See discussion: https://discuss.python.org/t/module-slot-for-checking-abi-compatibility/96443/
The checks we can do using C API are limited, but would still be useful, e.g. for the case of mixing up GIL-ful and free-threaded extensions/builds.
I propose adding:
C API WG vote pending: capi-workgroup/decisions#72
gh-137210: Add a struct, slot & function for checking an extension's …
Keeping open for a touch-up; see #137212 (comment)
gh-137210: Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel…
pythongh-137210: Add a struct, slot & function for checking an extens…
pythongh-137210: Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patc…
Activity
gh-137210: Add a struct, slot & function for checking an extension's …
encukou commented on Sep 5, 2025
Keeping open for a touch-up; see #137212 (comment)
gh-137210: Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel…
pythongh-137210: Add a struct, slot & function for checking an extens…
pythongh-137210: Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patc…