Home
last modified time | relevance | path

Searched refs:PyCF_ONLY_AST (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Include/cpython/
Dcompile.h17 #define PyCF_ONLY_AST 0x0400 macro
21 #define PyCF_COMPILE_MASK (PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT | \
/third_party/python/Python/
Dbltinmodule.c762 if (feature_version >= 0 && (flags & PyCF_ONLY_AST)) { in builtin_compile_impl()
792 if (!(flags & PyCF_ONLY_AST)) { in builtin_compile_impl()
801 if (flags & PyCF_ONLY_AST) in builtin_compile_impl()
813 if (flags & PyCF_ONLY_AST) { in builtin_compile_impl()
Dpythonrun.c1375 if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { in Py_CompileStringObject()
DPython-ast.c11610 if (PyModule_AddIntMacro(m, PyCF_ONLY_AST) < 0) { in astmodule_exec()
/third_party/python/Lib/test/
Dtest_compile.py455 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST)
463 co1 = compile('print(1)', '<string>', 'exec', _ast.PyCF_ONLY_AST)
Dtest_ast.py309 ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST)
707 b = compile('foo(1 + 1)', '<unknown>', 'exec', ast.PyCF_ONLY_AST)
2179 ast_tree = compile(code, filename, mode, flags=ast.PyCF_ONLY_AST)
/third_party/python/Parser/
Dpegen.c1217 if ((flags->cf_flags & PyCF_ONLY_AST) && flags->cf_feature_version < 7) { in compute_parser_flags()
1480 int feature_version = flags && (flags->cf_flags & PyCF_ONLY_AST) ? in _PyPegen_run_parser_from_string()
/third_party/python/Doc/c-api/
Dveryhigh.rst366 ``PyCF_ONLY_AST`` flag is set in *cf_flags*.
/third_party/python/Doc/library/
Dast.rst23 An abstract syntax tree can be generated by passing :data:`ast.PyCF_ONLY_AST` as
1897 filename, mode, ast.PyCF_ONLY_AST)``.
2172 .. data:: PyCF_ONLY_AST
/third_party/python/Lib/
Dast.py40 flags = PyCF_ONLY_AST
/third_party/python/Doc/whatsnew/
D2.5.rst2105 :func:`compile` built-in and specifying ``_ast.PyCF_ONLY_AST`` as the value of
2108 from _ast import PyCF_ONLY_AST
2112 """, "<string>", 'exec', PyCF_ONLY_AST)
D3.8.rst2013 by default, and is used if and only if ``PyCF_ONLY_AST`` flag is set in
/third_party/python/Misc/NEWS.d/
D3.10.0a1.rst620 PyCF_ONLY_AST is not set. This is against the intention and against the