Home
last modified time | relevance | path

Searched refs:fromlist (Results 1 – 25 of 33) sorted by relevance

12

/third_party/python/Lib/test/test_importlib/import_/
Dtest_fromlist.py29 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 …]
Dtest_relative_imports.py82 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'],
Dtest_api.py71 self.__import__(PKG_NAME, fromlist=['not here'])
84 fromlist=[SUBMOD_NAME.rpartition('.')[-1]])
97 fromlist=[SUBMOD_NAME.rpartition('.')[-1]])
Dtest_caching.py93 module = self.__import__('pkg', fromlist=['module'])
Dtest___package__.py43 fromlist=['attr'], level=2)
/third_party/python/Lib/
Dmodulefinder.py170 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 …]
Ddifflib.py1822 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/
Dvector.py45 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/
Dimport.h56 PyObject *fromlist,
64 PyObject *fromlist,
/third_party/mindspore/mindspore/_extends/parse/
Dnamespace.py60 mod_dict = vars(__import__(name, fromlist=['_']))
69 mod_dict = vars(__import__(name, fromlist=['_']))
/third_party/python/Doc/c-api/
Dimport.rst20 *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.py1053 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)
Dutil.py94 parent = __import__(parent_name, fromlist=['__path__'])
/third_party/python/Lib/dbm/
D__init__.py68 mod = __import__(name, fromlist=['open'])
/third_party/python/Python/
Dimport.c1563 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()
Dbltinmodule.c266 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__()
Dceval.c3692 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__.py99 mod = __import__('encodings.' + modname, fromlist=_import_tail,
/third_party/python/Lib/test/
Dtest_array.py312 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])
Dtest_dbm.py23 mod = __import__(name, fromlist=['open'])
/third_party/python/Doc/library/
Darray.rst76 :meth:`fromlist`, :meth:`frombytes`, or :meth:`fromunicode` method (see below)
166 .. method:: array.fromlist(list)
Dimp.rst394 def __import__(name, globals=None, locals=None, fromlist=None):
/third_party/mindspore/mindspore/parallel/
D_utils.py259 module = __import__(op_path, fromlist=["None"])
/third_party/python/Doc/data/
Drefcounts.dat1025 PyImport_ImportModuleEx:PyObject*:fromlist:0:???
1031 PyImport_ImportModuleLevel:PyObject*:fromlist:0:???
1038 PyImport_ImportModuleLevelObject:PyObject*:fromlist:0:???
/third_party/python/Misc/NEWS.d/
D3.6.4rc1.rst66 BytesWarning no longer emitted when the *fromlist* argument of

12