zipimport.zipimporter.get_source()
  • References/Python/Python/Importing

get_source(fullname) Return the source code for the specified module. Raise ZipImportError if the module couldn’t

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

get_source(fullname) Concrete implementation of InspectLoader.get_source().

2025-01-10 15:47:30
modulefinder.ModuleFinder.report()
  • References/Python/Python/Importing

report() Print a report to standard output that lists the modules imported by the script and their paths, as well as modules

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

importlib.import_module(name, package=None) Import a module. The name argument specifies what module to import in absolute

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

get_source(fullname) Returns None as bytecode files have no source when this loader is used.

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.reload()
  • References/Python/Python/Importing

importlib.reload(module) Reload a previously imported module. The argument must be a module object, so it must have

2025-01-10 15:47:30
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
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
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