Skip to content

gh-117142: ctypes: Unify meta tp slot functions#117143

Merged
encukou merged 11 commits intopython:mainfrom
neonene:ctypes_multi
Apr 1, 2024
Merged

gh-117142: ctypes: Unify meta tp slot functions#117143
encukou merged 11 commits intopython:mainfrom
neonene:ctypes_multi

Conversation

@neonene
Copy link
Contributor

@neonene neonene commented Mar 22, 2024

Integrates the following ctypes meta tp slot functions:

  • CDataType_traverse() into CType_Type_traverse().
  • CDataType_clear() into CType_Type_clear().
  • CDataType_dealloc() into CType_Type_dealloc().
  • CDataType_repeat() into CType_Type_repeat().

Previous description (expand):

An attempt to introduce multi-phase initialization:

  • Keep using a global state.

  • Integrate CDataType_* functions into CType_Type_*().

  • Make module_traverse() visit almost all global variables to invoke module_clear(), >leaving aside malloc_closure.c (free_list) for now. The free_list is related to >CThunkObject_dealloc() and I'm not sure if it also needs isolation.


Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants