summaryrefslogtreecommitdiffstats
path: root/Include/Python-ast.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-11-02 21:03:28 (GMT)
committerGitHub <noreply@github.com>2020-11-02 21:03:28 (GMT)
commit5cf4782a2630629d0978bf4cf6b6340365f449b2 (patch)
treee54caf1ea68b6c0ded1d72d72a35db3ab7224138 /Include/Python-ast.h
parent34637a0ce21e7261b952fbd9d006474cc29b681f (diff)
downloadcpython-5cf4782a2630629d0978bf4cf6b6340365f449b2.zip
cpython-5cf4782a2630629d0978bf4cf6b6340365f449b2.tar.gz
cpython-5cf4782a2630629d0978bf4cf6b6340365f449b2.tar.bz2
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
Diffstat (limited to 'Include/Python-ast.h')
-rw-r--r--Include/Python-ast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/Python-ast.h b/Include/Python-ast.h
index e14bab5..fc9f65c 100644
--- a/Include/Python-ast.h
+++ b/Include/Python-ast.h
@@ -1,4 +1,4 @@
-/* File automatically generated by Parser/asdl_c.py. */
+// File automatically generated by Parser/asdl_c.py.
#ifndef Py_PYTHON_AST_H
#define Py_PYTHON_AST_H