pkgutil.walk_packages()
  • References/Python/Python/Importing

pkgutil.walk_packages(path=None, prefix='', onerror=None) Yields (module_finder, name, ispkg) for all modules recursively

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

find_loader(fullname) A legacy method for finding a loader for the specified module.

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

abstractmethod get_source(fullname) An abstract method to return the source of a module. It is returned as a text string using

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

path_mtime(path) Optional abstract method which returns the modification time for the specified path.

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

get_source(fullname) Returns None as extension modules do not have source code.

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

path Path to the file of the module.

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

importlib.machinery.SOURCE_SUFFIXES A list of strings representing the recognized file suffixes for source modules.

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

class importlib.machinery.ModuleSpec(name, loader, *, origin=None, loader_state=None, is_package=None) A specification for a

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

is_package(fullname) Return true if path appears to be for a package.

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

set_data(path, data) Concrete implementation of importlib.abc.SourceLoader.set_data().

2025-01-10 15:47:30