Searched refs:ImportFrom (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Python/ |
D | future.c | 15 asdl_alias_seq *names = s->v.ImportFrom.names; in future_check_features() 93 identifier modname = s->v.ImportFrom.module; in future_parse()
|
D | ast.c | 828 if (stmt->v.ImportFrom.level < 0) { in validate_stmt() 832 ret = validate_nonempty_seq(stmt->v.ImportFrom.names, "names", "ImportFrom"); in validate_stmt()
|
D | compile.c | 3381 Py_ssize_t i, n = asdl_seq_LEN(s->v.ImportFrom.names); in compiler_from_import() 3391 ADDOP_LOAD_CONST_NEW(c, PyLong_FromLong(s->v.ImportFrom.level)); in compiler_from_import() 3399 alias_ty alias = (alias_ty)asdl_seq_GET(s->v.ImportFrom.names, i); in compiler_from_import() 3404 if (s->lineno > c->c_future->ff_lineno && s->v.ImportFrom.module && in compiler_from_import() 3405 _PyUnicode_EqualToASCIIString(s->v.ImportFrom.module, "__future__")) { in compiler_from_import() 3412 if (s->v.ImportFrom.module) { in compiler_from_import() 3413 ADDOP_NAME(c, IMPORT_NAME, s->v.ImportFrom.module, names); in compiler_from_import() 3419 alias_ty alias = (alias_ty)asdl_seq_GET(s->v.ImportFrom.names, i); in compiler_from_import()
|
D | Python-ast.c | 2429 p->v.ImportFrom.module = module; in _PyAST_ImportFrom() 2430 p->v.ImportFrom.names = names; in _PyAST_ImportFrom() 2431 p->v.ImportFrom.level = level; in _PyAST_ImportFrom() 4079 value = ast2obj_identifier(state, o->v.ImportFrom.module); in ast2obj_stmt() 4084 value = ast2obj_list(state, (asdl_seq*)o->v.ImportFrom.names, in ast2obj_stmt() 4090 value = ast2obj_int(state, o->v.ImportFrom.level); in ast2obj_stmt()
|
D | symtable.c | 1356 VISIT_SEQ(st, alias, s->v.ImportFrom.names); in symtable_visit_stmt()
|
/third_party/python/Parser/ |
D | Python.asdl | 46 | ImportFrom(identifier? module, alias* names, int? level)
|
/third_party/python/Lib/test/ |
D | test_ast.py | 334 self.assertIsInstance(mod.body[0], ast.ImportFrom) 1065 body = [ast.ImportFrom(module='time', 1075 body = [ast.ImportFrom(module='time', 1301 imp = ast.ImportFrom(None, [ast.alias("x", None)], -42) 1303 self.stmt(ast.ImportFrom(None, [], 0), "empty names on ImportFrom")
|
/third_party/python/Include/internal/ |
D | pycore_ast.h | 311 } ImportFrom; member
|
/third_party/python/Doc/library/ |
D | ast.rst | 943 .. class:: ImportFrom(module, names, level) 955 ImportFrom( 975 ImportFrom(
|
/third_party/python/Misc/ |
D | HISTORY | 7987 - Issue #14378: Fix compiling ast.ImportFrom nodes with a "__future__" string as
|