SIGN IN SIGN UP

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.
V
Victor Stinner committed
91e1bc18bd467a13bceb62e16fbc435b33381c82
Parent: 74419f0
Committed by GitHub <noreply@github.com> on 7/3/2020, 12:15:53 PM