importlib.machinery.FileFinder.invalidate_caches()
  • References/Python/Python/Importing

invalidate_caches() Clear out the internal cache.

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

importlib.util.spec_from_loader(name, loader, *, origin=None, is_package=None) A factory function for creating a ModuleSpec

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

loader

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

pkgutil.get_data(package, resource) Get a resource from a package. This is a wrapper for the

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

importlib.machinery.all_suffixes() Returns a combined list of strings representing all file suffixes for modules recognized

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

importlib.util.cache_from_source(path, debug_override=None, *, optimization=None) Return the

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

is_package(fullname) Concrete implementation of InspectLoader.is_package(). A module is determined to be a package

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

load_module(fullname) A legacy method for loading a module. If the module cannot be loaded,

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

runpy.run_path(file_path, init_globals=None, run_name=None) Execute the code at the named filesystem location and return the

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

get_code(fullname) Return the code object for a module, or None if the module does not have a code object (as would

2025-01-10 15:47:30