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

find_module(fullname[, path]) Search for a module specified by fullname. fullname must be the fully qualified

2025-01-10 15:47:30
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.machinery.DEBUG_BYTECODE_SUFFIXES
  • References/Python/Python/Importing

importlib.machinery.DEBUG_BYTECODE_SUFFIXES A list of strings representing the file suffixes for non-optimized bytecode modules

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

find_spec(fullname, target=None) Attempt to find the spec to handle fullname within path.

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

archive The file name of the importer’s associated ZIP file, without a possible subpath.

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

classmethod find_spec(fullname, path=None, target=None) Class method that attempts to find a spec

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

path Path to the extension module.

2025-01-10 15:47:30