importlib
Table of Contents
Reference
import
__import__(name, globals=None, locals=None, fromlist=(), level=0)
Programmatic importing of modules should use
import_module()
instead of this function.
If you simply want to import a module (potentially within a package) by name, use
importlib.import_module()
.
importmodule
importlib.import_module(name, package=None)
- acts as a simplifying wrapper around
importlib.__import__()
.