summaryrefslogtreecommitdiffstats
path: root/Python/thread.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-07-03 14:57:19 (GMT)
committerGitHub <noreply@github.com>2020-07-03 14:57:19 (GMT)
commitf8599279b6ac8c44538b608fd08c13ccf674f497 (patch)
tree463d4e7c9959f46494cd69c90ee5be524e0e8b5a /Python/thread.c
parent486c256bdf158fb23063c458f4c8201395cc89bc (diff)
downloadcpython-f8599279b6ac8c44538b608fd08c13ccf674f497.zip
cpython-f8599279b6ac8c44538b608fd08c13ccf674f497.tar.gz
cpython-f8599279b6ac8c44538b608fd08c13ccf674f497.tar.bz2
[3.9] bpo-41194: The _ast module cannot be loaded more than once (GH-21290) (GH-21292)
* bpo-41194: Pass module state in Python-ast.c (GH-21284) Rework asdl_c.py to pass the module state to functions in Python-ast.c, instead of using astmodulestate_global. Handle also PyState_AddModule() failure in init_types(). (cherry picked from commit 74419f0c64959bb8392fcf3659058410423038e1) * bpo-41194: The _ast module cannot be loaded more than once (GH-21290) Fix a crash in the _ast module: it can no longer be loaded more than once. It now uses a global state rather than a module state. * Move _ast module state: use a global state instead. * Set _astmodule.m_size to -1, so the extension cannot be loaded more than once. (cherry picked from commit 91e1bc18bd467a13bceb62e16fbc435b33381c82)
Diffstat (limited to 'Python/thread.c')
0 files changed, 0 insertions, 0 deletions