/third_party/python/Lib/test/test_importlib/import_/ |
D | test_fromlist.py | 29 module = self.__import__('pkg.module', fromlist=['attr']) 57 module = self.__import__('module', fromlist=['attr']) 64 module = self.__import__('module', fromlist=['non_existent']) 72 module = self.__import__('pkg', fromlist=['module']) 80 module = self.__import__('pkg', fromlist=['non_existent']) 94 self.__import__('pkg', fromlist=['mod']) 100 module = self.__import__('pkg.mod', fromlist=['']) 103 def basic_star_test(self, fromlist=['*']): argument 108 module = self.__import__('pkg', fromlist=fromlist) 126 module = self.__import__('pkg', fromlist=['module2', '*']) [all …]
|
D | test_relative_imports.py | 82 module = self.__import__('', global_, fromlist=['mod2'], level=1) 94 module = self.__import__('mod2', global_, fromlist=['attr'], 107 module = self.__import__('', global_, fromlist=['module'], 120 module = self.__import__('', global_, fromlist=['attr'], level=1) 131 module = self.__import__('', global_, fromlist=['subpkg2'], 149 module = self.__import__('', global_, fromlist=['attr'], level=6) 161 self.__import__('', global_, fromlist=['top_level'], 172 self.__import__('', global_, fromlist=['top_level'], 194 fromlist=['nephew'],
|
D | test_api.py | 71 self.__import__(PKG_NAME, fromlist=['not here']) 84 fromlist=[SUBMOD_NAME.rpartition('.')[-1]]) 97 fromlist=[SUBMOD_NAME.rpartition('.')[-1]])
|
D | test_caching.py | 93 module = self.__import__('pkg', fromlist=['module'])
|
D | test___package__.py | 43 fromlist=['attr'], level=2)
|
/third_party/python/Lib/ |
D | modulefinder.py | 170 def import_hook(self, name, caller=None, fromlist=None, level=-1): argument 171 self.msg(3, "import_hook", name, caller, fromlist, level) 175 if not fromlist: 178 self.ensure_fromlist(m, fromlist) 258 def ensure_fromlist(self, m, fromlist, recursive=0): argument 259 self.msg(4, "ensure_fromlist", m, fromlist, recursive) 260 for sub in fromlist: 369 def _safe_import_hook(self, name, caller, fromlist, level=-1): argument 383 if fromlist: 384 for sub in fromlist: [all …]
|
D | difflib.py | 1822 fromlist,tolist = [],[] 1823 self._split_line(fromlist,fromline,fromtext) 1827 while fromlist or tolist: 1828 if fromlist: 1829 fromdata = fromlist.pop(0) 1845 fromlist,tolist,flaglist = [],[],[] 1850 fromlist.append(self._format_line(0,flag,*fromdata)) 1854 fromlist.append(None) 1857 return fromlist,tolist,flaglist 1893 def _convert_flags(self,fromlist,tolist,flaglist,context,numlines): argument [all …]
|
/third_party/python/Tools/demo/ |
D | vector.py | 45 def fromlist(cls, v): member in Vec 69 return Vec.fromlist(v) 74 return Vec.fromlist(v) 79 return Vec.fromlist(v)
|
/third_party/python/Include/ |
D | import.h | 56 PyObject *fromlist, 64 PyObject *fromlist,
|
/third_party/mindspore/mindspore/_extends/parse/ |
D | namespace.py | 60 mod_dict = vars(__import__(name, fromlist=['_'])) 69 mod_dict = vars(__import__(name, fromlist=['_']))
|
/third_party/python/Doc/c-api/ |
D | import.rst | 20 *fromlist* argument is set to the list ``['*']`` so that the return value is the 42 … PyImport_ImportModuleEx(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist) 52 requested is normally the top-level package, unless a non-empty *fromlist* 59 …duleLevelObject(PyObject *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level) 68 top-level package, unless a non-empty *fromlist* was given. 73 …rtModuleLevel(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level)
|
/third_party/python/Lib/importlib/ |
D | _bootstrap.py | 1053 def _handle_fromlist(module, fromlist, import_, *, recursive=False): argument 1063 for x in fromlist: 1117 def __import__(name, globals=None, locals=None, fromlist=(), level=0): argument 1134 if not fromlist: 1149 return _handle_fromlist(module, fromlist, _gcd_import)
|
D | util.py | 94 parent = __import__(parent_name, fromlist=['__path__'])
|
/third_party/python/Lib/dbm/ |
D | __init__.py | 68 mod = __import__(name, fromlist=['open'])
|
/third_party/python/Python/ |
D | import.c | 1563 PyObject *locals, PyObject *fromlist, in PyImport_ImportModuleLevelObject() argument 1629 if (fromlist != NULL && fromlist != Py_None) { in PyImport_ImportModuleLevelObject() 1630 has_from = PyObject_IsTrue(fromlist); in PyImport_ImportModuleLevelObject() 1695 mod, fromlist, interp->import_func, NULL); in PyImport_ImportModuleLevelObject() 1715 PyObject *fromlist, int level) in PyImport_ImportModuleLevel() argument 1722 fromlist, level); in PyImport_ImportModuleLevel()
|
D | bltinmodule.c | 266 PyObject *name, *globals = NULL, *locals = NULL, *fromlist = NULL; in builtin___import__() local 270 kwlist, &name, &globals, &locals, &fromlist, &level)) in builtin___import__() 273 fromlist, level); in builtin___import__()
|
D | ceval.c | 3692 PyObject *fromlist = POP(); in _PyEval_EvalFrameDefault() local 3695 res = import_name(tstate, f, name, fromlist, level); in _PyEval_EvalFrameDefault() 3697 Py_DECREF(fromlist); in _PyEval_EvalFrameDefault() 5972 PyObject *name, PyObject *fromlist, PyObject *level) in import_name() argument 5996 fromlist, in import_name() 6006 stack[3] = fromlist; in import_name()
|
/third_party/python/Lib/encodings/ |
D | __init__.py | 99 mod = __import__('encodings.' + modname, fromlist=_import_tail,
|
/third_party/python/Lib/test/ |
D | test_array.py | 312 a.fromlist(data2) 320 a.fromlist(data2) 329 a.fromlist(data2) 337 a.fromlist(data2) 502 self.assertRaises(TypeError, b.fromlist) 503 self.assertRaises(TypeError, b.fromlist, 42) 504 self.assertRaises(TypeError, b.fromlist, [None]) 505 b.fromlist(a.tolist()) 1077 self.assertRaises(BufferError, a.fromlist, a.tolist()) 1542 example.fromlist([12, 13, 14, 15])
|
D | test_dbm.py | 23 mod = __import__(name, fromlist=['open'])
|
/third_party/python/Doc/library/ |
D | array.rst | 76 :meth:`fromlist`, :meth:`frombytes`, or :meth:`fromunicode` method (see below) 166 .. method:: array.fromlist(list)
|
D | imp.rst | 394 def __import__(name, globals=None, locals=None, fromlist=None):
|
/third_party/mindspore/mindspore/parallel/ |
D | _utils.py | 259 module = __import__(op_path, fromlist=["None"])
|
/third_party/python/Doc/data/ |
D | refcounts.dat | 1025 PyImport_ImportModuleEx:PyObject*:fromlist:0:??? 1031 PyImport_ImportModuleLevel:PyObject*:fromlist:0:??? 1038 PyImport_ImportModuleLevelObject:PyObject*:fromlist:0:???
|
/third_party/python/Misc/NEWS.d/ |
D | 3.6.4rc1.rst | 66 BytesWarning no longer emitted when the *fromlist* argument of
|