New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stable ABI should avoid enum
#88890
Comments
Adding a new enumerator to a C enum can change the size of the type, AFAICS, the rules are:
(Also, the compiler-defined size of enums will make it more cumbersome to formally define an ABI for non-C languages.) |
Devguide PR: python/devguide#730 |
As far as I can see, the current enums in the stable ABI are: PySendResult from object.h, return value of PyObject_Send: PyLockStatus from pythread.h, return value of PyThread_acquire_lock_timed: PyGILState_STATE from pystate.h, for PyGILState_Ensure/PyGILState_Release: |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: