module documentation

Undocumented

Class ExplicitNamespacePackageFinder A finder for the explicit namespace packages, generated through pkg_resources.
Class Finder A finder is a class which knows how to find a particular module.
Class ImportlibFinder A finder based on the importlib module.
Class ModuleSpec Defines a class similar to PEP 420's ModuleSpec
Class PathSpecFinder Finder based on importlib.machinery.PathFinder.
Class ZipFinder Finder that knows how to find a module inside zip files.
Function find_spec Find a spec for the given module.
Variable ModuleType Undocumented
Function _cached_set_diff Undocumented
Function _find_spec_with_path Undocumented
Function _is_setuptools_namespace Undocumented
Function _precache_zipimporters For each path that has not been already cached in the sys.path_importer_cache, create a new zipimporter instance and add it into the cache. Return a dict associating all paths, stored in the cache, to corresponding zipimporter instances.
Function _search_zip Undocumented
Constant _SPEC_FINDERS Undocumented
Variable _ModuleSpec Undocumented
def find_spec(modpath, path=None): (source)

Find a spec for the given module.

Parameters
modpath:list or tuplesplit module's name (i.e name of a module or package split on '.'), with leading empty strings for explicit relative import
path:list or Noneoptional list of path where the module or package should be searched (use sys.path if nothing or None is given)
Returns
ModuleSpecA module spec, which describes how the module was found and where.
ModuleType = (source)

Undocumented

@lru_cache()
def _cached_set_diff(left, right): (source)

Undocumented

def _find_spec_with_path(search_path, modname, module_parts, processed, submodule_path): (source)

Undocumented

def _is_setuptools_namespace(location): (source)

Undocumented

def _precache_zipimporters(path=None): (source)

For each path that has not been already cached in the sys.path_importer_cache, create a new zipimporter instance and add it into the cache. Return a dict associating all paths, stored in the cache, to corresponding zipimporter instances.

Parameters
pathpaths that has to be added into the cache
Returns
association between paths stored in the cache and zipimporter instances
def _search_zip(modpath, pic): (source)

Undocumented

_ModuleSpec = (source)

Undocumented