Searched refs:asname (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Include/internal/ |
D | pycore_ast_state.h | 160 PyObject *asname; member
|
D | pycore_ast.h | 544 identifier asname; member 804 alias_ty _PyAST_alias(identifier name, identifier asname, int lineno, int
|
/third_party/python/Lib/ |
D | pyclbr.py | 261 self.tree[name.asname or name.name] = module[name.name]
|
D | ast.py | 1574 if node.asname: 1575 self.write(" as " + node.asname)
|
/third_party/python/Parser/ |
D | Python.asdl | 122 alias = (identifier name, identifier? asname)
|
/third_party/python/Python/ |
D | Python-ast.c | 174 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 …]
|
D | compile.c | 3293 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()
|
D | symtable.c | 1954 PyObject *name = (a->asname == NULL) ? a->name : a->asname; in symtable_visit_alias()
|
/third_party/python/Doc/library/ |
D | ast.rst | 965 .. 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/ |
D | test_ast.py | 343 self.assertIsNone(alias.asname) 352 self.assertIsNone(alias.asname)
|