Description# This SPEC recommends a lazy loading mechanism—targeted at libraries—that avoids import slowdowns and provides explicit submodule exports. For example, it allows the following behavior: import skimage as ski # cheap operation; does not load submodules ski.filters # cheap operation; loads the filters submodule, but not # any of its submodules or functions ski.filters.gaussian(...) # loads the file in which gaussian is implemented # and calls that function This has several advan...| scientific-python.org
Source code: Lib/importlib/__init__.py Introduction: The purpose of the importlib package is three-fold. One is to provide the implementation of the import statement (and thus, by extension, the__i...| Python documentation