Home
last modified time | relevance | path

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

/third_party/python/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
/third_party/python/Lib/
Dpyclbr.py261 self.tree[name.asname or name.name] = module[name.name]
Dast.py1574 if node.asname:
1575 self.write(" as " + node.asname)
/third_party/python/Parser/
DPython.asdl122 alias = (identifier name, identifier? asname)
/third_party/python/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.c3293 compiler_import_as(struct compiler *c, identifier name, identifier asname) in compiler_import_as() argument
3323 if (!compiler_nameop(c, asname, Store)) { in compiler_import_as()
3329 return compiler_nameop(c, asname, Store); in compiler_import_as()
3353 if (alias->asname) { in compiler_import()
3354 r = compiler_import_as(c, alias->name, alias->asname); in compiler_import()
3430 if (alias->asname) in compiler_from_import()
3431 store_name = alias->asname; in compiler_from_import()
Dsymtable.c1954 PyObject *name = (a->asname == NULL) ? a->name : a->asname; in symtable_visit_alias()
/third_party/python/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'),
/third_party/python/Lib/test/
Dtest_ast.py343 self.assertIsNone(alias.asname)
352 self.assertIsNone(alias.asname)