importlib.find_loader()
  • References/Python/Python/Importing

importlib.find_loader(name, path=None) Find the loader for a module, optionally within the specified path. If the module

2025-01-10 15:47:30
zipimport.zipimporter.get_filename()
  • References/Python/Python/Importing

get_filename(fullname) Return the value __file__ would be set to if the specified module was imported. Raise

2025-01-10 15:47:30
importlib.util.LazyLoader
  • References/Python/Python/Importing

class importlib.util.LazyLoader(loader) A class which postpones the execution of the loader of a module until the module has

2025-01-10 15:47:30
zipimport.zipimporter.get_data()
  • References/Python/Python/Importing

get_data(pathname) Return the data associated with pathname. Raise

2025-01-10 15:47:30
importlib.machinery.PathFinder.invalidate_caches()
  • References/Python/Python/Importing

classmethod invalidate_caches() Calls importlib.abc.PathEntryFinder.invalidate_caches() on all finders stored in

2025-01-10 15:47:30
importlib.abc.SourceLoader
  • References/Python/Python/Importing

class importlib.abc.SourceLoader An abstract base class for implementing source (and optionally bytecode) file loading. The

2025-01-10 15:47:30
importlib.util.module_from_spec()
  • References/Python/Python/Importing

importlib.util.module_from_spec(spec) Create a new module based on spec and spec.loader.create_module()

2025-01-10 15:47:30
importlib.machinery.FrozenImporter
  • References/Python/Python/Importing

class importlib.machinery.FrozenImporter An importer for frozen modules. This class implements

2025-01-10 15:47:30
importlib.machinery.SourcelessFileLoader.get_code()
  • References/Python/Python/Importing

get_code(fullname) Returns the code object for name created from path.

2025-01-10 15:47:30
importlib.abc.ExecutionLoader.get_filename()
  • References/Python/Python/Importing

abstractmethod get_filename(fullname) An abstract method that is to return the value of __file__ for the specified

2025-01-10 15:47:30