class documentation

class ZipFinder(Finder): (source)

Constructor: ZipFinder(path)

View In Hierarchy

Finder that knows how to find a module inside zip files.

Method __init__ Undocumented
Method find_module Find the given module
Instance Variable _zipimporters Undocumented

Inherited from Finder:

Method contribute_to_path Get a list of extra paths where this finder can search.
Instance Variable _path Undocumented
def __init__(self, path): (source)
def find_module(self, modname, module_parts, processed, submodule_path): (source)

Find the given module

Each finder is responsible for each protocol of finding, as long as they all return a ModuleSpec.

Parameters
modnameUndocumented
module_partsUndocumented
processedUndocumented
submodule_pathUndocumented
str modnameThe module which needs to be searched.
list module_partsIt should be a list of strings, where each part contributes to the module's namespace.
list processedWhat parts from the module parts were processed so far.
list submodule_pathA list of paths where the module can be looked into.
Returns
A ModuleSpec, describing how and where the module was found, None, otherwise.
_zipimporters = (source)

Undocumented