Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
gh-114314: Move types to ctypes_state#114316
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Move types to the ctypes_state structure:* PyCArray_Type* PyCData_Type* PyCFuncPtr_Type* PyCPointer_Type* Simple_TypeThe following macros get an additional state parameter:* ArrayObject_Check()* CDataObject_Check()* CDataObject_CheckExact()* PointerObject_Check()* PyCFuncPtrObject_Check()The following function gets an additional state parameter:* _PyCData_set()Co-Authored-By: neonene <53406459+neonene@users.noreply.github.com>
This change only prepares the code to convert static types to heap types. It doesn't change the behavior. It only moves references to types from global variables to the |
To keep this change as small as possible, I didn't change the following macros to add a newstate parameter.
These macros can be changed afterwards. |
PR#113857, which expects fewer follow-up PRs, can be closed after this is landed. |
I merged#113857 instead. |
Uh oh!
There was an error while loading.Please reload this page.
Move types to the ctypes_state structure:
The following macros get an additional state parameter:
The following function gets an additional state parameter: