Home
last modified time | relevance | path

Searched refs:asname (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython2/Lib/compiler/
Dsymbols.py331 for name, asname in node.names:
334 scope.add_def(asname or name)
337 for name, asname in node.names:
341 scope.add_def(asname or name)
Dfuture.py33 for name, asname in stmt.names:
/external/tensorflow/tensorflow/tools/compatibility/
Dast_edits.py643 new_asname = import_alias.asname
647 new_alias = ast.alias(name=new_name, asname=new_asname)
653 full_import = (import_alias.name, import_alias.asname)
843 full_import = (import_alias.name, import_alias.asname)
869 full_import = (full_module_name, import_alias.asname)
Dtf_upgrade_v2.py80 import_alias.asname == "tf"):
/external/python/cpython3/Include/internal/
Dpycore_ast_state.h160 PyObject *asname; member
Dpycore_ast.h544 identifier asname; member
804 alias_ty _PyAST_alias(identifier name, identifier asname, int lineno, int
/external/python/cpython2/Parser/
DPython.asdl114 alias = (identifier name, identifier? asname)
/external/python/cpython2/Demo/parser/
Dunparse.py568 if t.asname:
569 self.write(" as "+t.asname)
/external/python/cpython3/Lib/
Dpyclbr.py261 self.tree[name.asname or name.name] = module[name.name]
Dast.py1574 if node.asname:
1575 self.write(" as " + node.asname)
/external/tensorflow/tensorflow/python/autograph/pyct/
Dtranspiler.py113 names=[gast.alias(name=name, asname=None) for name in future_features],
/external/python/cpython3/Parser/
DPython.asdl122 alias = (identifier name, identifier? asname)
/external/python/cpython2/Include/
DPython-ast.h371 identifier asname; member
531 alias_ty _Py_alias(identifier name, identifier asname, PyArena *arena);
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dactivity.py421 if node.asname is None:
425 qn = qual_names.QN(node.asname)
/external/python/cpython2/Python/
Dcompile.c1881 compiler_import_as(struct compiler *c, identifier name, identifier asname) in compiler_import_as() argument
1906 return compiler_nameop(c, asname, Store); in compiler_import_as()
1938 if (alias->asname) { in compiler_import()
1939 r = compiler_import_as(c, alias->name, alias->asname); in compiler_import()
2026 if (alias->asname) in compiler_from_import()
2027 store_name = alias->asname; in compiler_from_import()
Dsymtable.c1411 PyObject *name = (a->asname == NULL) ? a->name : a->asname; in symtable_visit_alias()
DPython-ast.c2116 alias(identifier name, identifier asname, PyArena *arena) in alias() argument
2128 p->asname = asname; in alias()
3306 value = ast2obj_identifier(o->asname); in ast2obj_alias()
6726 identifier asname; in obj2ast_alias() local
6744 res = obj2ast_identifier(tmp, &asname, arena); in obj2ast_alias()
6749 asname = NULL; in obj2ast_alias()
6751 *out = alias(name, asname, arena); in obj2ast_alias()
Dast.c2472 assert(!a->asname); in alias_for_import_name()
2475 a->asname = NEW_IDENTIFIER(asname_node); in alias_for_import_name()
2476 if (!a->asname) in alias_for_import_name()
/external/python/cpython3/Python/
DPython-ast.c174 Py_CLEAR(state->asname); in _PyAST_Fini()
283 if ((state->asname = PyUnicode_InternFromString("asname")) == NULL) return 0; in init_identifiers()
1751 if (PyObject_SetAttr(state->alias_type, state->asname, Py_None) == -1) in init_types()
3333 _PyAST_alias(identifier name, identifier asname, int lineno, int col_offset, in _PyAST_alias() argument
3346 p->asname = asname; in _PyAST_alias()
5046 value = ast2obj_identifier(state, o->asname); in ast2obj_alias()
5048 if (PyObject_SetAttr(result, state->asname, value) == -1) in ast2obj_alias()
10696 identifier asname; in obj2ast_alias() local
10719 if (_PyObject_LookupAttr(obj, state->asname, &tmp) < 0) { in obj2ast_alias()
10724 asname = NULL; in obj2ast_alias()
[all …]
Dcompile.c3294 compiler_import_as(struct compiler *c, identifier name, identifier asname) in compiler_import_as() argument
3324 if (!compiler_nameop(c, asname, Store)) { in compiler_import_as()
3330 return compiler_nameop(c, asname, Store); in compiler_import_as()
3354 if (alias->asname) { in compiler_import()
3355 r = compiler_import_as(c, alias->name, alias->asname); in compiler_import()
3431 if (alias->asname) in compiler_from_import()
3432 store_name = alias->asname; in compiler_from_import()
Dsymtable.c1954 PyObject *name = (a->asname == NULL) ? a->name : a->asname; in symtable_visit_alias()
/external/python/cpython3/Doc/library/
Dast.rst965 .. class:: alias(name, asname)
967 Both parameters are raw strings of the names. ``asname`` can be ``None`` if
978 alias(name='a', asname='b'),
/external/python/cpython3/Lib/test/
Dtest_ast.py343 self.assertIsNone(alias.asname)
352 self.assertIsNone(alias.asname)
/external/python/cpython3/Doc/data/
Dpython3.10.abi6650 …<var-decl name='asname' type-id='type-id-16' visibility='default' filepath='./Include/internal/pyc…
14390 …<var-decl name='asname' type-id='type-id-566' visibility='default' filepath='./Include/internal/py…