Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
Dutil.py265 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 …]
Dpyparser.py32 import _ast
33 util.restore__ast(_ast)
104 if isinstance(arg, _ast.Tuple):
145 if isinstance(node.ctx, _ast.Store):
D_ast_util.py33 from _ast import *
/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.py804 import _ast
805 check(_ast.AST(), size(''))
/external/python/cpython3/Lib/test/
Dtest_compile.py5 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()]
Dtest_sys.py1181 import _ast
1182 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
106 key, pos_and_siz_pair = _ast.literal_eval(line)
/external/python/cpython3/Modules/
Dconfig.c.in45 {"_ast", PyInit__ast},
/external/python/cpython2/Modules/
Dconfig.c.in44 {"_ast", init_ast},
/external/python/cpython3/Lib/
Dast.py27 from _ast import *
/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/cpython3/Doc/library/
Dast.rst33 :ref:`below <abstract-grammar>`. They are defined in the :mod:`_ast` C
/external/python/cpython3/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
D3.2.rst1505 ValueError: malformed node or string: <_ast.Call object at 0x101739a10>
/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/cpython2/Misc/
DNEWS10206 - Patch #1810: compile() can now compile _ast trees as returned by
DHISTORY1201 to Python code; an _ast module was added.
/external/python/cpython3/Misc/
DHISTORY17327 - Removed the compiler package. Use of the _ast module and (an
18585 to Python code; an _ast module was added.