Searched refs:PyCF_ONLY_AST (Results 1 – 13 of 13) sorted by relevance
/third_party/python/Include/cpython/ |
D | compile.h | 17 #define PyCF_ONLY_AST 0x0400 macro 21 #define PyCF_COMPILE_MASK (PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT | \
|
/third_party/python/Python/ |
D | bltinmodule.c | 762 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()
|
D | pythonrun.c | 1375 if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { in Py_CompileStringObject()
|
D | Python-ast.c | 11610 if (PyModule_AddIntMacro(m, PyCF_ONLY_AST) < 0) { in astmodule_exec()
|
/third_party/python/Lib/test/ |
D | test_compile.py | 455 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST) 463 co1 = compile('print(1)', '<string>', 'exec', _ast.PyCF_ONLY_AST)
|
D | test_ast.py | 309 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/ |
D | pegen.c | 1217 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/ |
D | veryhigh.rst | 366 ``PyCF_ONLY_AST`` flag is set in *cf_flags*.
|
/third_party/python/Doc/library/ |
D | ast.rst | 23 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/ |
D | ast.py | 40 flags = PyCF_ONLY_AST
|
/third_party/python/Doc/whatsnew/ |
D | 2.5.rst | 2105 :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)
|
D | 3.8.rst | 2013 by default, and is used if and only if ``PyCF_ONLY_AST`` flag is set in
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a1.rst | 620 PyCF_ONLY_AST is not set. This is against the intention and against the
|