/external/python/cpython3/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'], 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'],
|
D | test_api.py | 70 self.__import__(PKG_NAME, fromlist=['not here']) 83 fromlist=[SUBMOD_NAME.rpartition('.')[-1]]) 96 fromlist=[SUBMOD_NAME.rpartition('.')[-1]])
|
D | test_caching.py | 86 module = self.__import__('pkg', fromlist=['module'])
|
/external/python/cpython2/Lib/ |
D | modulefinder.py | 142 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 …]
|
D | imputil.py | 86 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 …]
|
D | difflib.py | 1823 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 …]
|
D | ihooks.py | 362 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/ |
D | modulefinder.py | 174 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 …]
|
D | difflib.py | 1852 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/ |
D | vector.py | 35 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/ |
D | Vec.py | 29 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/ |
D | imputil.rst | 118 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/ |
D | import.h | 68 PyObject *fromlist, 76 PyObject *fromlist,
|
/external/python/setuptools/setuptools/ |
D | extension.py | 19 __import__(cython_impl, fromlist=['build_ext']).build_ext
|
/external/python/cpython3/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)
|
/external/python/cpython2/Include/ |
D | import.h | 19 PyObject *globals, PyObject *locals, PyObject *fromlist, int level);
|
/external/python/cpython3/Lib/importlib/ |
D | _bootstrap.py | 1017 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/ |
D | import.rst | 20 *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/ |
D | import.c | 2236 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__.py | 68 mod = __import__(name, fromlist=['open'])
|
/external/python/cpython2/Lib/encodings/ |
D | __init__.py | 99 mod = __import__('encodings.' + modname, fromlist=_import_tail,
|
/external/python/cpython3/Lib/encodings/ |
D | __init__.py | 98 mod = __import__('encodings.' + modname, fromlist=_import_tail,
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
D | mbim_channel_unittest.py | 254 packet.fromlist([0xFF, 0xFF, 0xFF, 0xFF, 0xDD, 0xDD, 0xDD, 0xDD]) 256 response_packet.fromlist([0xAA, 0xAA, 0xBB, 0xBB])
|
/external/python/cpython3/Lib/test/ |
D | test_array.py | 294 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])
|