pkgutil.find_loader()

pkgutil.find_loader(fullname)

Retrieve a PEP 302 module loader for the given fullname.

This is a backwards compatibility wrapper around importlib.util.find_spec() that converts most failures to ImportError and only returns the loader rather than the full ModuleSpec.

Changed in version 3.3: Updated to be based directly on importlib rather than relying on the package internal PEP 302 import emulation.

Changed in version 3.4: Updated to be based on PEP 451

doc_python
2016-10-07 17:40:43
Comments
Leave a Comment

Please login to continue.