PyDocs

Nav

Importing Modules

iter_importers

pkgutil

function (source)
  • iter_importers(fullname='')
Yield finders for the given module name

If fullname contains a '.', the finders will be for the package
containing fullname, otherwise they will be all registered top level
finders (i.e. those on both sys.meta_path and sys.path_hooks).

If the named module is in a package, that package is imported as a side
effect of invoking this function.

If no module name is specified, all top level finders are produced.
Changed in 3.3
  • 3.3: Updated to be based directly on importlib rather than relying on the package internal PEP 302 import emulation.
0 Examples
No examples for pkgutil/iter_importers.
See Also
No see-alsos for pkgutil/iter_importers
0 Notes
No notes for iter_importers