diff options
author | Petr Viktorin <encukou@gmail.com> | 2024-05-23 16:01:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 16:01:37 (GMT) |
commit | a192547dfe7c4f184cc8b579c3eff2f61f642483 (patch) | |
tree | 7b4be0bb65f11de657662bce0d58bf15104cb41b /Lib/test/test_pyrepl/test_unix_console.py | |
parent | 406ffb5293a8c9ca315bf63de1ee36a9b33f9aaf (diff) | |
download | cpython-a192547dfe7c4f184cc8b579c3eff2f61f642483.zip cpython-a192547dfe7c4f184cc8b579c3eff2f61f642483.tar.gz cpython-a192547dfe7c4f184cc8b579c3eff2f61f642483.tar.bz2 |
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>
Diffstat (limited to 'Lib/test/test_pyrepl/test_unix_console.py')
0 files changed, 0 insertions, 0 deletions