PyDocs

Nav

Importing Modules

MetaPathFinder.find_spec

importlib.abc

method of MetaPathFinder · Added in 3.4
  • MetaPathFinder.find_spec(fullname, path, target=None)
An abstract method for finding a spec for the specified module. If this is a top-level import, path will be None. Otherwise, this is a search for a subpackage or module and path will be the value of __path__ from the parent package. If a spec cannot be found, None is returned. When passed in, target is a module object that the finder may use to make a more educated guess about what spec to return. importlib.util.spec_from_loader() may be useful for implementing concrete MetaPathFinders.
0 Examples
No examples for importlib.abc/MetaPathFinder.find_spec.
See Also
No see-alsos for importlib.abc/MetaPathFinder.find_spec
0 Notes
No notes for MetaPathFinder.find_spec