pkgutil.iter_importers()
pkgutil.iter_importers() is a Python function in the Pkgutil Module category. Yields all registered importers. The syntax is pkgutil.iter_importers(fullname=""). Returns: Generator of importer objects. A typical example: for imp in pkgutil.iter_importers():
print(imp). A close sibling is pkgutil.walk_packages(), which yields (module_finder, name, ispkg) for all submodules in a package. A close sibling is pkgutil.extend_path(), which extends the search path for a package (from __path__). More about this category: Package utilities — get_importer, iter_importers, walk_packages, extend_path. Related Pkgutil Module entries: pkgutil.walk_packages(), pkgutil.extend_path(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try pkgutil.iter_importers() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.