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().
This commit is contained in:
Victor Stinner 2020-07-03 11:35:37 +02:00 committed by GitHub
parent 9d006977d7
commit 74419f0c64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2072 additions and 2150 deletions

4040
Python/Python-ast.c generated

File diff suppressed because it is too large Load diff