mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-108113: Make it possible to create an optimized AST (#108154)
This commit is contained in:
parent
47022a079e
commit
10a91d7e98
10 changed files with 124 additions and 14 deletions
3
Python/Python-ast.c
generated
3
Python/Python-ast.c
generated
|
@ -12659,6 +12659,9 @@ astmodule_exec(PyObject *m)
|
|||
if (PyModule_AddIntMacro(m, PyCF_TYPE_COMMENTS) < 0) {
|
||||
return -1;
|
||||
}
|
||||
if (PyModule_AddIntMacro(m, PyCF_OPTIMIZED_AST) < 0) {
|
||||
return -1;
|
||||
}
|
||||
if (PyModule_AddObjectRef(m, "mod", state->mod_type) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue