mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
Generate code to recursively copy an AST into
a tree of Python objects. Expose this through compile().
This commit is contained in:
parent
23b0dc5053
commit
bd260da900
8 changed files with 1906 additions and 745 deletions
|
@ -443,7 +443,7 @@ builtin_compile(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
if (supplied_flags &
|
||||
~(PyCF_MASK | PyCF_MASK_OBSOLETE | PyCF_DONT_IMPLY_DEDENT))
|
||||
~(PyCF_MASK | PyCF_MASK_OBSOLETE | PyCF_DONT_IMPLY_DEDENT | PyCF_ONLY_AST))
|
||||
{
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
"compile(): unrecognised flags");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue