]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41194: Pass module state in Python-ast.c (GH-21284)
authorVictor Stinner <vstinner@python.org>
Fri, 3 Jul 2020 09:35:37 +0000 (11:35 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Jul 2020 09:35:37 +0000 (11:35 +0200)
commit74419f0c64959bb8392fcf3659058410423038e1
tree1682111c3879f1af092746506b516e9048c888ad
parent9d006977d7ff5a45d6e7d696c1713fdf2dd308b7
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().
Parser/asdl_c.py
Python/Python-ast.c