/external/python/cpython3/Include/ |
D | compile.h | 29 #define PyCF_ONLY_AST 0x0400 macro 33 #define PyCF_COMPILE_MASK (PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT | \
|
/external/python/cpython2/Demo/parser/ |
D | test_unparse.py | 83 ast1 = compile(code1, filename, "exec", ast.PyCF_ONLY_AST) 87 ast2 = compile(code2, filename, "exec", ast.PyCF_ONLY_AST)
|
D | unparse.py | 574 tree = compile(source, filename, "exec", ast.PyCF_ONLY_AST)
|
/external/python/cpython2/Lib/test/ |
D | test_ast.py | 219 ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST) 390 b = compile('foo(1 + 1)', '<unknown>', 'exec', ast.PyCF_ONLY_AST)
|
D | test_compile.py | 542 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/ |
D | pythonrun.h | 16 #define PyCF_ONLY_AST 0x0400 macro
|
/external/python/cpython2/Lib/ |
D | ast.py | 37 return compile(source, filename, mode, PyCF_ONLY_AST)
|
/external/python/cpython2/Doc/library/ |
D | ast.rst | 25 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/ |
D | bltinmodule.c | 737 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()
|
D | pythonrun.c | 1268 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()
|
D | ast.c | 780 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/ |
D | test_compile.py | 440 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST) 448 co1 = compile('print(1)', '<string>', 'exec', _ast.PyCF_ONLY_AST)
|
D | test_ast.py | 308 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/ |
D | 3.9.0b4.rst | 101 PyCF_ONLY_AST is not set. This is against the intention and against the
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6a2.rst | 37 PyCF_ONLY_AST)``.
|
/external/python/cpython3/Parser/pegen/ |
D | pegen.c | 1048 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/ |
D | bltinmodule.c | 492 ~(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()
|
D | pythonrun.c | 1437 if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { in Py_CompileStringFlags()
|
D | Python-ast.c | 6768 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) in init_ast()
|
/external/python/cpython3/Doc/library/ |
D | ast.rst | 23 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/ |
D | veryhigh.rst | 413 ``PyCF_ONLY_AST`` flag is set in *cf_flags*.
|
/external/python/cpython3/Lib/ |
D | ast.py | 40 flags = PyCF_ONLY_AST
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.5.rst | 2104 :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/ |
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 | 2012 by default, and is used if and only if ``PyCF_ONLY_AST`` flag is set in
|