importlib.abc.SourceLoader.set_data()
  • References/Python/Python/Importing

set_data(path, data) Optional abstract method which writes the specified bytes to a file path. Any intermediate directories

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

static source_to_code(data, path='') Create a code object from Python source. The data

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

get_code(fullname) Returns None as extension modules lack a code object.

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.SourcelessFileLoader
  • References/Python/Python/Importing

class importlib.machinery.SourcelessFileLoader(fullname, path) A concrete implementation of importlib.abc.FileLoader

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

is_package(fullname) Determines if the module is a package based on path.

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

invalidate_caches() An optional method which, when called, should invalidate any internal cache used by the finder. Used by

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

importlib.util.find_spec(name, package=None) Find the spec for a module, optionally relative

2025-01-10 15:47:30