summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyrepl/test_unix_console.py
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2024-05-23 16:01:37 (GMT)
committerGitHub <noreply@github.com>2024-05-23 16:01:37 (GMT)
commita192547dfe7c4f184cc8b579c3eff2f61f642483 (patch)
tree7b4be0bb65f11de657662bce0d58bf15104cb41b /Lib/test/test_pyrepl/test_unix_console.py
parent406ffb5293a8c9ca315bf63de1ee36a9b33f9aaf (diff)
downloadcpython-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