diff options
author | Victor Stinner <vstinner@python.org> | 2020-07-03 12:15:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-03 12:15:53 (GMT) |
commit | 91e1bc18bd467a13bceb62e16fbc435b33381c82 (patch) | |
tree | c0b38793683a3a4f0c72b471e14ca0bc622bd33d /Python/marshal.c | |
parent | 74419f0c64959bb8392fcf3659058410423038e1 (diff) | |
download | cpython-91e1bc18bd467a13bceb62e16fbc435b33381c82.zip cpython-91e1bc18bd467a13bceb62e16fbc435b33381c82.tar.gz cpython-91e1bc18bd467a13bceb62e16fbc435b33381c82.tar.bz2 |
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.
Diffstat (limited to 'Python/marshal.c')
0 files changed, 0 insertions, 0 deletions