Searched refs:_ast (Results 1 – 21 of 21) sorted by relevance
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/ |
D | util.py | 265 def restore__ast(_ast): argument 269 if hasattr(_ast, 'AST'): 271 _ast.PyCF_ONLY_AST = 2 << 9 285 mako in baz not in mako""", '<unknown>', 'exec', _ast.PyCF_ONLY_AST) 286 _ast.Module = type(m) 288 for cls in _ast.Module.__mro__: 290 _ast.mod = cls 292 _ast.AST = cls 294 _ast.FunctionDef = type(m.body[0]) 295 _ast.ClassDef = type(m.body[1]) [all …]
|
D | pyparser.py | 32 import _ast 33 util.restore__ast(_ast) 104 if isinstance(arg, _ast.Tuple): 145 if isinstance(node.ctx, _ast.Store):
|
D | _ast_util.py | 33 from _ast import *
|
/external/python/cpython2/Lib/test/ |
D | test_compile.py | 4 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()]
|
D | test_sys.py | 804 import _ast 805 check(_ast.AST(), size(''))
|
/external/python/cpython3/Lib/test/ |
D | test_compile.py | 5 import _ast 445 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST) 446 self.assertTrue(type(ast) == _ast.Module) 453 co1 = compile('print(1)', '<string>', 'exec', _ast.PyCF_ONLY_AST) 457 self.assertRaises(TypeError, compile, _ast.If(), '<ast>', 'exec') 460 ast = _ast.Module() 461 ast.body = [_ast.BoolOp()]
|
D | test_sys.py | 1181 import _ast 1182 check(_ast.AST(), size('P'))
|
/external/python/cpython2/Lib/ |
D | dumbdbm.py | 24 import ast as _ast namespace 91 key, pos_and_siz_pair = _ast.literal_eval(line)
|
D | ast.py | 28 from _ast import * 29 from _ast import __version__
|
/external/python/cpython3/Lib/dbm/ |
D | dumb.py | 24 import ast as _ast namespace 106 key, pos_and_siz_pair = _ast.literal_eval(line)
|
/external/python/cpython3/Modules/ |
D | config.c.in | 45 {"_ast", PyInit__ast},
|
/external/python/cpython2/Modules/ |
D | config.c.in | 44 {"_ast", init_ast},
|
/external/python/cpython3/Lib/ |
D | ast.py | 27 from _ast import *
|
/external/python/cpython2/Doc/library/ |
D | ast.rst | 11 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/cpython3/Doc/library/ |
D | ast.rst | 33 :ref:`below <abstract-grammar>`. They are defined in the :mod:`_ast` C
|
/external/python/cpython3/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
|
D | 3.2.rst | 1505 ValueError: malformed node or string: <_ast.Call object at 0x101739a10>
|
/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
|
/external/python/cpython2/Misc/ |
D | NEWS | 10206 - Patch #1810: compile() can now compile _ast trees as returned by
|
D | HISTORY | 1201 to Python code; an _ast module was added.
|
/external/python/cpython3/Misc/ |
D | HISTORY | 17327 - Removed the compiler package. Use of the _ast module and (an 18585 to Python code; an _ast module was added.
|