Home
last modified time | relevance | path

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

123

/external/python/cpython3/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'],
148 module = self.__import__('', global_, fromlist=['attr'], level=6)
160 self.__import__('', global_, fromlist=['top_level'],
171 self.__import__('', global_, fromlist=['top_level'],
193 fromlist=['nephew'],
Dtest_api.py70 self.__import__(PKG_NAME, fromlist=['not here'])
83 fromlist=[SUBMOD_NAME.rpartition('.')[-1]])
96 fromlist=[SUBMOD_NAME.rpartition('.')[-1]])
Dtest_caching.py86 module = self.__import__('pkg', fromlist=['module'])
/external/python/cpython2/Lib/
Dmodulefinder.py142 def import_hook(self, name, caller=None, fromlist=None, level=-1): argument
143 self.msg(3, "import_hook", name, caller, fromlist, level)
147 if not fromlist:
150 self.ensure_fromlist(m, fromlist)
230 def ensure_fromlist(self, m, fromlist, recursive=0): argument
231 self.msg(4, "ensure_fromlist", m, fromlist, recursive)
232 for sub in fromlist:
336 def _safe_import_hook(self, name, caller, fromlist, level=-1): argument
347 if fromlist:
348 for sub in fromlist:
[all …]
Dimputil.py86 def _import_hook(self, fqname, globals=None, locals=None, fromlist=None): argument
96 module = parent.__importer__._do_import(parent, parts, fromlist)
113 if not fromlist:
135 return importer._finish_import(top_module, parts[1:], fromlist)
139 if fromlist:
228 def _finish_import(self, top, parts, fromlist): argument
234 if not fromlist:
258 self._import_fromlist(bottom, fromlist)
333 def _import_fromlist(self, package, fromlist): argument
338 if '*' in fromlist:
[all …]
Ddifflib.py1823 fromlist,tolist = [],[]
1824 self._split_line(fromlist,fromline,fromtext)
1828 while fromlist or tolist:
1829 if fromlist:
1830 fromdata = fromlist.pop(0)
1846 fromlist,tolist,flaglist = [],[],[]
1851 fromlist.append(self._format_line(0,flag,*fromdata))
1855 fromlist.append(None)
1858 return fromlist,tolist,flaglist
1894 def _convert_flags(self,fromlist,tolist,flaglist,context,numlines): argument
[all …]
Dihooks.py362 def import_module(self, name, globals={}, locals={}, fromlist=[]): argument
404 def import_module(self, name, globals=None, locals=None, fromlist=None, argument
409 if not fromlist:
412 self.ensure_fromlist(m, fromlist)
493 def ensure_fromlist(self, m, fromlist, recursive=0): argument
494 for sub in fromlist:
/external/python/cpython3/Lib/
Dmodulefinder.py174 def import_hook(self, name, caller=None, fromlist=None, level=-1): argument
175 self.msg(3, "import_hook", name, caller, fromlist, level)
179 if not fromlist:
182 self.ensure_fromlist(m, fromlist)
262 def ensure_fromlist(self, m, fromlist, recursive=0): argument
263 self.msg(4, "ensure_fromlist", m, fromlist, recursive)
264 for sub in fromlist:
372 def _safe_import_hook(self, name, caller, fromlist, level=-1): argument
386 if fromlist:
387 for sub in fromlist:
[all …]
Ddifflib.py1852 fromlist,tolist = [],[]
1853 self._split_line(fromlist,fromline,fromtext)
1857 while fromlist or tolist:
1858 if fromlist:
1859 fromdata = fromlist.pop(0)
1875 fromlist,tolist,flaglist = [],[],[]
1880 fromlist.append(self._format_line(0,flag,*fromdata))
1884 fromlist.append(None)
1887 return fromlist,tolist,flaglist
1923 def _convert_flags(self,fromlist,tolist,flaglist,context,numlines): argument
[all …]
/external/python/cpython3/Tools/demo/
Dvector.py35 def fromlist(cls, v): member in Vec
55 return Vec.fromlist(v)
60 return Vec.fromlist(v)
65 return Vec.fromlist(v)
/external/python/cpython2/Demo/classes/
DVec.py29 def fromlist(cls, v): member in Vec
49 return Vec.fromlist(v)
54 return Vec.fromlist(v)
59 return Vec.fromlist(v)
/external/python/cpython2/Doc/library/
Dimputil.rst118 def import_hook(name, globals=None, locals=None, fromlist=None):
122 if not fromlist:
125 ensure_fromlist(m, fromlist)
177 def ensure_fromlist(m, fromlist, recursive=0):
178 for sub in fromlist:
/external/python/cpython3/Include/
Dimport.h68 PyObject *fromlist,
76 PyObject *fromlist,
/external/python/setuptools/setuptools/
Dextension.py19 __import__(cython_impl, fromlist=['build_ext']).build_ext
/external/python/cpython3/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)
/external/python/cpython2/Include/
Dimport.h19 PyObject *globals, PyObject *locals, PyObject *fromlist, int level);
/external/python/cpython3/Lib/importlib/
D_bootstrap.py1017 def _handle_fromlist(module, fromlist, import_, *, recursive=False): argument
1027 for x in fromlist:
1081 def __import__(name, globals=None, locals=None, fromlist=(), level=0): argument
1098 if not fromlist:
1113 return _handle_fromlist(module, fromlist, _gcd_import)
/external/python/cpython2/Doc/c-api/
Dimport.rst20 *fromlist* argument is set to the list ``['*']`` so that the return value is the
50 …bject* PyImport_ImportModuleEx(char *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
62 unless a non-empty *fromlist* was given.
72 …t_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level)
81 top-level package, unless a non-empty *fromlist* was given.
/external/python/cpython2/Python/
Dimport.c2236 static int ensure_fromlist(PyObject *mod, PyObject *fromlist,
2244 PyObject *fromlist, int level) in import_module_level() argument
2297 if (fromlist != NULL) { in import_module_level()
2298 int b = (fromlist == Py_None) ? 0 : PyObject_IsTrue(fromlist); in import_module_level()
2305 fromlist = NULL; in import_module_level()
2308 if (fromlist == NULL) { in import_module_level()
2315 if (!ensure_fromlist(tail, fromlist, buf, buflen, 0)) { in import_module_level()
2330 PyObject *fromlist, int level) in PyImport_ImportModuleLevel() argument
2334 result = import_module_level(name, globals, locals, fromlist, level); in PyImport_ImportModuleLevel()
2597 ensure_fromlist(PyObject *mod, PyObject *fromlist, char *buf, Py_ssize_t buflen, in ensure_fromlist() argument
[all …]
/external/python/cpython3/Lib/dbm/
D__init__.py68 mod = __import__(name, fromlist=['open'])
/external/python/cpython2/Lib/encodings/
D__init__.py99 mod = __import__('encodings.' + modname, fromlist=_import_tail,
/external/python/cpython3/Lib/encodings/
D__init__.py98 mod = __import__('encodings.' + modname, fromlist=_import_tail,
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_channel_unittest.py254 packet.fromlist([0xFF, 0xFF, 0xFF, 0xFF, 0xDD, 0xDD, 0xDD, 0xDD])
256 response_packet.fromlist([0xAA, 0xAA, 0xBB, 0xBB])
/external/python/cpython3/Lib/test/
Dtest_array.py294 a.fromlist(data2)
302 a.fromlist(data2)
311 a.fromlist(data2)
319 a.fromlist(data2)
423 self.assertRaises(TypeError, b.fromlist)
424 self.assertRaises(TypeError, b.fromlist, 42)
425 self.assertRaises(TypeError, b.fromlist, [None])
426 b.fromlist(a.tolist())
1007 self.assertRaises(BufferError, a.fromlist, a.tolist())
1471 example.fromlist([12, 13, 14, 15])

123