gh-117142: Slightly hacky fix for memory leak of StgInfo (GH-119424)
Add a funciton that inlines PyObject_GetTypeData and skips type-checking, so it doesn't need access to the CType_Type object. This will break if the memory layout changes, but should be an acceptable solution to enable ctypes in subinterpreters in Python 3.13. Mark _ctypes as safe for multiple interpreters Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
P
Petr Viktorin committed
a192547dfe7c4f184cc8b579c3eff2f61f642483
Parent: 406ffb5
Committed by GitHub <noreply@github.com>
on 5/23/2024, 4:01:37 PM