Home
last modified time | relevance | path

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

12

/external/python/cpython3/Include/
Dcompile.h29 #define PyCF_ONLY_AST 0x0400 macro
33 #define PyCF_COMPILE_MASK (PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT | \
/external/python/cpython2/Demo/parser/
Dtest_unparse.py83 ast1 = compile(code1, filename, "exec", ast.PyCF_ONLY_AST)
87 ast2 = compile(code2, filename, "exec", ast.PyCF_ONLY_AST)
Dunparse.py574 tree = compile(source, filename, "exec", ast.PyCF_ONLY_AST)
/external/python/cpython2/Lib/test/
Dtest_ast.py219 ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST)
390 b = compile('foo(1 + 1)', '<unknown>', 'exec', ast.PyCF_ONLY_AST)
Dtest_compile.py542 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST)
550 co1 = compile('print 1', '<string>', 'exec', _ast.PyCF_ONLY_AST)
/external/python/cpython2/Include/
Dpythonrun.h16 #define PyCF_ONLY_AST 0x0400 macro
/external/python/cpython2/Lib/
Dast.py37 return compile(source, filename, mode, PyCF_ONLY_AST)
/external/python/cpython2/Doc/library/
Dast.rst25 An abstract syntax tree can be generated by passing :data:`ast.PyCF_ONLY_AST` as
130 filename, mode, ast.PyCF_ONLY_AST)``.
/external/python/cpython3/Python/
Dbltinmodule.c737 if (feature_version >= 0 && (flags & PyCF_ONLY_AST)) { in builtin_compile_impl()
767 if (!(flags & PyCF_ONLY_AST)) { in builtin_compile_impl()
776 if (flags & PyCF_ONLY_AST) in builtin_compile_impl()
788 if (flags & PyCF_ONLY_AST) { in builtin_compile_impl()
Dpythonrun.c1268 if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { in Py_CompileStringObject()
1405 if (flags && (flags->cf_flags & PyCF_ONLY_AST) && flags->cf_feature_version < 7) in PyParser_ASTFromStringObject()
Dast.c780 c.c_feature_version = flags && (flags->cf_flags & PyCF_ONLY_AST) ? in PyAST_FromNodeObject()
4781 cf.cf_flags = PyCF_ONLY_AST; in fstring_compile_expr()
/external/python/cpython3/Lib/test/
Dtest_compile.py440 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST)
448 co1 = compile('print(1)', '<string>', 'exec', _ast.PyCF_ONLY_AST)
Dtest_ast.py308 ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST)
686 b = compile('foo(1 + 1)', '<unknown>', 'exec', ast.PyCF_ONLY_AST)
1961 ast_tree = compile(code, filename, mode, flags=ast.PyCF_ONLY_AST)
/external/python/cpython3/Misc/NEWS.d/
D3.9.0b4.rst101 PyCF_ONLY_AST is not set. This is against the intention and against the
/external/python/cpython2/Misc/NEWS.d/
D2.6a2.rst37 PyCF_ONLY_AST)``.
/external/python/cpython3/Parser/pegen/
Dpegen.c1048 if ((flags->cf_flags & PyCF_ONLY_AST) && flags->cf_feature_version < 7) { in compute_parser_flags()
1242 int feature_version = flags && (flags->cf_flags & PyCF_ONLY_AST) ? in _PyPegen_run_parser_from_string()
/external/python/cpython2/Python/
Dbltinmodule.c492 ~(PyCF_MASK | PyCF_MASK_OBSOLETE | PyCF_DONT_IMPLY_DEDENT | PyCF_ONLY_AST)) in builtin_compile()
520 if (supplied_flags & PyCF_ONLY_AST) { in builtin_compile()
Dpythonrun.c1437 if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { in Py_CompileStringFlags()
DPython-ast.c6768 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) in init_ast()
/external/python/cpython3/Doc/library/
Dast.rst23 An abstract syntax tree can be generated by passing :data:`ast.PyCF_ONLY_AST` as
1523 filename, mode, ast.PyCF_ONLY_AST)``.
1778 .. data:: PyCF_ONLY_AST
/external/python/cpython3/Doc/c-api/
Dveryhigh.rst413 ``PyCF_ONLY_AST`` flag is set in *cf_flags*.
/external/python/cpython3/Lib/
Dast.py40 flags = PyCF_ONLY_AST
/external/python/cpython2/Doc/whatsnew/
D2.5.rst2104 :func:`compile` built-in and specifying ``_ast.PyCF_ONLY_AST`` as the value of
2107 from _ast import PyCF_ONLY_AST
2111 """, "<string>", 'exec', PyCF_ONLY_AST)
/external/python/cpython3/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.rst2012 by default, and is used if and only if ``PyCF_ONLY_AST`` flag is set in

12