SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72156 0 82 Python

bpo-41796: Make _ast module state per interpreter (GH-23024)

The ast module internal state is now per interpreter.

* Rename "astmodulestate" to "struct ast_state"
* Add pycore_ast.h internal header: the ast_state structure is now
  declared in pycore_ast.h.
* Add PyInterpreterState.ast (struct ast_state)
* Remove get_ast_state()
* Rename get_global_ast_state() to get_ast_state()
* PyAST_obj2mod() now handles get_ast_state() failures
V
Victor Stinner committed
5cf4782a2630629d0978bf4cf6b6340365f449b2
Parent: 34637a0
Committed by GitHub <noreply@github.com> on 11/2/2020, 9:03:28 PM