class documentation

A finder based on the importlib module.

Method contribute_to_path Get a list of extra paths where this finder can search.
Method find_module Find the given module.
Constant _SUFFIXES Undocumented

Inherited from Finder:

Method __init__ Undocumented
Instance Variable _path Undocumented
def contribute_to_path(self, spec: ModuleSpec, processed: list[str]) -> Sequence[str]|None: (source)

Get a list of extra paths where this finder can search.

def find_module(self, modname: str, module_parts: Sequence[str], processed: list[str], submodule_path: Sequence[str]|None) -> ModuleSpec|None: (source)

Find the given module. Each finder is responsible for each protocol of finding, as long as they all return a ModuleSpec. :param modname: The module which needs to be searched. :param module_parts: It should be a list of strings, where each part contributes to the module's namespace. :param processed: What parts from the module parts were processed so far. :param submodule_path: A list of paths where the module can be looked into. :returns: A ModuleSpec, describing how and where the module was found, None, otherwise.

Undocumented

Value
([(s, ModuleType.C_EXTENSION) for s in importlib.machinery.EXTENSION_SUFFIXES]+[(
s, ModuleType.PY_SOURCE) for s in importlib.machinery.SOURCE_SUFFIXES])+[(s, ModuleType.PY_COMPILED) for s in importlib.machinery.BYTECODE_SUFFIXES]