Lines Matching full:fullname

105     # 'fullname', or whether it could be a portion of a namespace
109 def find_loader(self, fullname, path=None): argument
110 """find_loader(fullname, path=None) -> self, str or None.
112 Search for a module specified by 'fullname'. 'fullname' must be the
124 mi = _get_module_info(self, fullname)
132 # We're only interested in the last path component of fullname
134 modpath = _get_module_path(self, fullname)
145 # 'fullname'. Return self if we can, None if we can't.
146 def find_module(self, fullname, path=None): argument
147 """find_module(fullname, path=None) -> self or None.
149 Search for a module specified by 'fullname'. 'fullname' must be the
160 return self.find_loader(fullname, path)[0]
162 def find_spec(self, fullname, target=None): argument
167 module_info = _get_module_info(self, fullname)
169 return _bootstrap.spec_from_loader(fullname, self, is_package=module_info)
174 # We're only interested in the last path component of fullname
176 modpath = _get_module_path(self, fullname)
182 spec = _bootstrap.ModuleSpec(name=fullname, loader=None,
189 def get_code(self, fullname): argument
190 """get_code(fullname) -> code object.
195 code, ispackage, modpath = _get_module_code(self, fullname)
220 def get_filename(self, fullname): argument
221 """get_filename(fullname) -> filename string.
228 code, ispackage, modpath = _get_module_code(self, fullname)
232 def get_source(self, fullname): argument
233 """get_source(fullname) -> source string.
239 mi = _get_module_info(self, fullname)
241 raise ZipImportError(f"can't find module {fullname!r}", name=fullname)
243 path = _get_module_path(self, fullname)
258 def is_package(self, fullname): argument
259 """is_package(fullname) -> bool.
261 Return True if the module specified by fullname is a package.
264 mi = _get_module_info(self, fullname)
266 raise ZipImportError(f"can't find module {fullname!r}", name=fullname)
270 # Load and return the module named by 'fullname'.
271 def load_module(self, fullname): argument
272 """load_module(fullname) -> module.
274 Load the module specified by 'fullname'. 'fullname' must be the
283 code, ispackage, modpath = _get_module_code(self, fullname)
284 mod = sys.modules.get(fullname)
286 mod = _module_type(fullname)
287 sys.modules[fullname] = mod
294 path = _get_module_path(self, fullname)
300 _bootstrap_external._fix_up_module(mod.__dict__, fullname, modpath)
303 del sys.modules[fullname]
307 mod = sys.modules[fullname]
309 raise ImportError(f'Loaded module {fullname!r} not found in sys.modules')
310 _bootstrap._verbose_message('import {} # loaded from Zip {}', fullname, modpath)
314 def get_resource_reader(self, fullname): argument
317 If 'fullname' is a package within the zip file, return the
321 if not self.is_package(fullname):
326 return ZipReader(self, fullname)
357 def _get_module_path(self, fullname): argument
358 return self.prefix + fullname.rpartition('.')[2]
370 def _get_module_info(self, fullname): argument
371 path = _get_module_path(self, fullname)
641 def _unmarshal_code(self, pathname, fullpath, fullname, data): argument
643 'name': fullname,
647 flags = _bootstrap_external._classify_pyc(data, fullname, exc_details)
662 data, source_hash, fullname, exc_details)
673 f'bytecode is stale for {fullname!r}')
745 # 'fullname'.
746 def _get_module_code(self, fullname): argument
747 path = _get_module_path(self, fullname)
762 code = _unmarshal_code(self, modpath, fullpath, fullname, data)
776 raise ZipImportError(msg, name=fullname) from import_error
778 raise ZipImportError(f"can't find module {fullname!r}", name=fullname)