[issue38113] Remove statics from ast.c
STINNER Victor
report at bugs.python.org
Fri Jul 3 08:27:53 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
> New changeset ac46eb4ad6662cf6d771b20d8963658b2186c48c by Eric Snow (Dino Viehland) in branch 'master':
> bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)
This change introduced a subtle regression: bpo-41194. I modified the _ast module to use again a global state:
New changeset 91e1bc18bd467a13bceb62e16fbc435b33381c82 by Victor Stinner in branch 'master':
bpo-41194: The _ast module cannot be loaded more than once (GH-21290)
https://github.com/python/cpython/commit/91e1bc18bd467a13bceb62e16fbc435b33381c82
I also proposed PR 21293 to use again a module state, even if the implementation has some drawbacks (see the PR comments).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38113>
_______________________________________
More information about the Python-bugs-list
mailing list