Kaydet (Commit) 51d06abc authored tarafından Benjamin Peterson's avatar Benjamin Peterson

importlib.import_module is better these days

üst d547144f
...@@ -825,12 +825,8 @@ then you will end up importing ``pkg.mod``. If you execute ``from ..subpkg2 ...@@ -825,12 +825,8 @@ then you will end up importing ``pkg.mod``. If you execute ``from ..subpkg2
imprt mod`` from within ``pkg.subpkg1`` you will import ``pkg.subpkg2.mod``. imprt mod`` from within ``pkg.subpkg1`` you will import ``pkg.subpkg2.mod``.
The specification for relative imports is contained within :pep:`328`. The specification for relative imports is contained within :pep:`328`.
:func:`importlib.import_module` is provided to support applications that
.. index:: builtin: __import__ determine which modules need to be loaded dynamically.
The built-in function :func:`__import__` is provided to support applications
that determine which modules need to be loaded dynamically; refer to
:ref:`built-in-funcs` for additional information.
.. _future: .. _future:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment