Home
last modified time | relevance | path

Searched refs:ImportFrom (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython2/Python/
Dfuture.c22 names = s->v.ImportFrom.names; in future_check_features()
88 identifier modname = s->v.ImportFrom.module; in future_parse()
Dcompile.c1967 int i, n = asdl_seq_LEN(s->v.ImportFrom.names); in compiler_from_import()
1978 if (s->v.ImportFrom.level == 0 && c->c_flags && in compiler_from_import()
1982 level = PyInt_FromLong(s->v.ImportFrom.level); in compiler_from_import()
1995 alias_ty alias = (alias_ty)asdl_seq_GET(s->v.ImportFrom.names, i); in compiler_from_import()
2000 if (s->lineno > c->c_future->ff_lineno && s->v.ImportFrom.module && in compiler_from_import()
2001 !strcmp(PyString_AS_STRING(s->v.ImportFrom.module), "__future__")) { in compiler_from_import()
2008 if (s->v.ImportFrom.module) { in compiler_from_import()
2009 ADDOP_NAME(c, IMPORT_NAME, s->v.ImportFrom.module, names); in compiler_from_import()
2015 alias_ty alias = (alias_ty)asdl_seq_GET(s->v.ImportFrom.names, i); in compiler_from_import()
DPython-ast.c1368 ImportFrom(identifier module, asdl_seq * names, int level, int lineno, int in ImportFrom() function
1376 p->v.ImportFrom.module = module; in ImportFrom()
1377 p->v.ImportFrom.names = names; in ImportFrom()
1378 p->v.ImportFrom.level = level; in ImportFrom()
2482 value = ast2obj_identifier(o->v.ImportFrom.module); in ast2obj_stmt()
2487 value = ast2obj_list(o->v.ImportFrom.names, ast2obj_alias); in ast2obj_stmt()
2492 value = ast2obj_int(o->v.ImportFrom.level); in ast2obj_stmt()
4640 *out = ImportFrom(module, names, level, lineno, col_offset, in obj2ast_stmt()
Dsymtable.c1124 VISIT_SEQ(st, alias, s->v.ImportFrom.names); in symtable_visit_stmt()
Dast.c2637 return ImportFrom(modname, aliases, ndots, lineno, col_offset, in ast_for_import_stmt()
/external/python/cpython3/Python/
Dfuture.c22 names = s->v.ImportFrom.names; in future_check_features()
100 identifier modname = s->v.ImportFrom.module; in future_parse()
Dcompile.c3266 Py_ssize_t i, n = asdl_seq_LEN(s->v.ImportFrom.names); in compiler_from_import()
3276 ADDOP_LOAD_CONST_NEW(c, PyLong_FromLong(s->v.ImportFrom.level)); in compiler_from_import()
3284 alias_ty alias = (alias_ty)asdl_seq_GET(s->v.ImportFrom.names, i); in compiler_from_import()
3289 if (s->lineno > c->c_future->ff_lineno && s->v.ImportFrom.module && in compiler_from_import()
3290 _PyUnicode_EqualToASCIIString(s->v.ImportFrom.module, "__future__")) { in compiler_from_import()
3297 if (s->v.ImportFrom.module) { in compiler_from_import()
3298 ADDOP_NAME(c, IMPORT_NAME, s->v.ImportFrom.module, names); in compiler_from_import()
3304 alias_ty alias = (alias_ty)asdl_seq_GET(s->v.ImportFrom.names, i); in compiler_from_import()
DPython-ast.c2421 ImportFrom(identifier module, asdl_seq * names, int level, int lineno, int in ImportFrom() function
2429 p->v.ImportFrom.module = module; in ImportFrom()
2430 p->v.ImportFrom.names = names; in ImportFrom()
2431 p->v.ImportFrom.level = level; in ImportFrom()
3850 value = ast2obj_identifier(state, o->v.ImportFrom.module); in ast2obj_stmt()
3855 value = ast2obj_list(state, o->v.ImportFrom.names, ast2obj_alias); in ast2obj_stmt()
3860 value = ast2obj_int(state, o->v.ImportFrom.level); in ast2obj_stmt()
6846 *out = ImportFrom(module, names, level, lineno, col_offset, end_lineno, in obj2ast_stmt()
Dast.c464 if (stmt->v.ImportFrom.level < 0) { in validate_stmt()
468 return validate_nonempty_seq(stmt->v.ImportFrom.names, "names", "ImportFrom"); in validate_stmt()
3690 return ImportFrom(modname, aliases, ndots, lineno, col_offset, in ast_for_import_stmt()
Dsymtable.c1317 VISIT_SEQ(st, alias, s->v.ImportFrom.names); in symtable_visit_stmt()
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/annotated_symbol/
D__init__.py34 ImportFrom,
Dimport_statement.py225 class ImportFrom(Import): class
/external/python/asn1crypto/tests/
Dtest_init.py53 elif isinstance(node, _ast.ImportFrom):
/external/python/cpython2/Parser/
DPython.asdl37 | ImportFrom(identifier? module, alias* names, int? level)
/external/tensorflow/tensorflow/python/autograph/pyct/
Dtranspiler.py115 future_imports = gast.ImportFrom(
/external/python/cpython3/Parser/
DPython.asdl44 | ImportFrom(identifier? module, alias* names, int? level)
/external/python/cpython2/Include/
DPython-ast.h166 } ImportFrom; member
432 #define ImportFrom(a0, a1, a2, a3, a4, a5) _Py_ImportFrom(a0, a1, a2, a3, a4, a5) macro
/external/tensorflow/tensorflow/tools/compatibility/
Dast_edits.py760 updated_node = ast.ImportFrom(new_from_import, updated_aliases, node.level)
767 same_node = ast.ImportFrom(from_import, same_aliases, node.level,
/external/python/cpython3/Lib/test/
Dtest_ast.py333 self.assertIsInstance(mod.body[0], ast.ImportFrom)
1010 body = [ast.ImportFrom(module='time',
1020 body = [ast.ImportFrom(module='time',
1229 imp = ast.ImportFrom(None, [ast.alias("x", None)], -42)
1231 self.stmt(ast.ImportFrom(None, [], 0), "empty names on ImportFrom")
/external/python/cpython2/Lib/test/
Dtest_ast.py236 self.assertIsInstance(mod.body[0], ast.ImportFrom)
/external/python/cpython3/Include/
DPython-ast.h205 } ImportFrom; member
539 #define ImportFrom(a0, a1, a2, a3, a4, a5, a6, a7) _Py_ImportFrom(a0, a1, a2, a3, a4, a5, a6, a7) macro
/external/python/cpython2/PC/os2emx/
Dpython27.def703 "ImportFrom"
/external/python/cpython3/Doc/library/
Dast.rst937 .. class:: ImportFrom(module, names, level)
949 ImportFrom(
969 ImportFrom(
/external/python/cpython2/Misc/NEWS.d/
D2.7.4rc1.rst576 Fix compiling ast.ImportFrom nodes with a "__future__" string as the module
D2.7a1.rst504 ImportFrom AST node is now None instead of an empty string.

12