Home
last modified time | relevance | path

Searched refs:_ast (Results 1 – 25 of 28) sorted by relevance

12

/external/python/asn1crypto/tests/
Dtest_init.py5 import _ast
49 if isinstance(node, _ast.Import):
53 elif isinstance(node, _ast.ImportFrom):
73 elif isinstance(node, _ast.If):
79 elif sys.version_info >= (3, 3) and isinstance(node, _ast.Try):
87 elif sys.version_info < (3, 3) and isinstance(node, _ast.TryFinally):
93 elif sys.version_info < (3, 3) and isinstance(node, _ast.TryExcept):
/external/rust/crates/regex-syntax/src/ast/
Dvisitor.rs38 fn visit_pre(&mut self, _ast: &Ast) -> Result<(), Self::Err> { in visit_pre()
44 fn visit_post(&mut self, _ast: &Ast) -> Result<(), Self::Err> { in visit_post()
59 _ast: &ast::ClassSetItem, in visit_class_set_item_pre()
69 _ast: &ast::ClassSetItem, in visit_class_set_item_post()
79 _ast: &ast::ClassSetBinaryOp, in visit_class_set_binary_op_pre()
89 _ast: &ast::ClassSetBinaryOp, in visit_class_set_binary_op_post()
98 _ast: &ast::ClassSetBinaryOp, in visit_class_set_binary_op_in()
Dprint.rs176 fn fmt_group_post(&mut self, _ast: &ast::Group) -> fmt::Result { in fmt_group_post()
309 _ast: &ast::ClassBracketed, in fmt_class_bracketed_post()
Dparse.rs2284 _ast: &ast::ClassSetBinaryOp, in visit_class_set_binary_op_post()
/external/python/asn1crypto/dev/
D_task.py5 import _ast
49 if isinstance(node, _ast.Assign):
51 and isinstance(node.targets[0], _ast.Name) \
/external/python/cpython2/Lib/test/
Dtest_compile.py4 import _ast
542 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST)
543 self.assertTrue(type(ast) == _ast.Module)
550 co1 = compile('print 1', '<string>', 'exec', _ast.PyCF_ONLY_AST)
554 self.assertRaises(TypeError, compile, _ast.If(), '<ast>', 'exec')
557 ast = _ast.Module()
558 ast.body = [_ast.BoolOp()]
Dtest_sys.py818 import _ast
819 check(_ast.AST(), size(''))
/external/python/cpython3/Lib/test/
Dtest_compile.py6 import _ast
440 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST)
441 self.assertTrue(type(ast) == _ast.Module)
448 co1 = compile('print(1)', '<string>', 'exec', _ast.PyCF_ONLY_AST)
452 self.assertRaises(TypeError, compile, _ast.If(), '<ast>', 'exec')
455 ast = _ast.Module()
456 ast.body = [_ast.BoolOp()]
Dtest_ast.py1971 import _ast as ast1
1974 import _ast as ast2
2003 import _ast
2004 self.assertIs(_ast, lazy_mod)
Dtest_sys.py1412 import _ast
1413 check(_ast.AST(), size('P'))
/external/python/cpython2/Lib/
Ddumbdbm.py24 import ast as _ast namespace
91 key, pos_and_siz_pair = _ast.literal_eval(line)
Dast.py28 from _ast import *
29 from _ast import __version__
/external/python/cpython3/Lib/dbm/
Ddumb.py24 import ast as _ast namespace
105 key, pos_and_siz_pair = _ast.literal_eval(line)
/external/python/cpython3/Misc/NEWS.d/
D3.9.0rc2.rst47 The ``_ast`` module uses again a global state. Using a module state per
50 import, whereas Python expected that ``import _ast`` always return a fully
51 initialized ``_ast`` module.
D3.9.0b5.rst169 Fix a crash in the ``_ast`` module: it can no longer be loaded more than
D3.9.0a5.rst375 "_ast". Added docstrings for dummy AST node classes and deprecated
/external/python/cpython2/Modules/
Dconfig.c.in44 {"_ast", init_ast},
/external/python/cpython3/Modules/
Dconfig.c.in45 {"_ast", PyInit__ast},
/external/python/cpython2/Doc/library/
Dast.rst11 The low-level ``_ast`` module containing only the node classes.
39 :ref:`below <abstract-grammar>`. They are defined in the :mod:`_ast` C
/external/python/cpython2/Misc/NEWS.d/
D2.6a2.rst36 compile() can now compile _ast trees as returned by ``compile(...,
/external/python/cpython3/Doc/library/
Dast.rst48 :ref:`below <abstract-grammar>`. They are defined in the :mod:`_ast` C
1763 .. _ast-compiler-flags:
1791 .. _ast-cli:
/external/python/cpython3/Lib/
Dast.py28 from _ast import *
/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
/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
D3.2.rst1510 ValueError: malformed node or string: <_ast.Call object at 0x101739a10>

12