diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-05-14 00:33:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-05-14 00:33:10 (GMT) |
commit | 51d06abc99cf6e106acc554aa39ab0813d677c9e (patch) | |
tree | 273ff1e726e74f52c5e29684302f3563bd169f3f /Doc/reference | |
parent | d547144f0fe10e309bb9c95cba3c5df58bcc079c (diff) | |
download | cpython-51d06abc99cf6e106acc554aa39ab0813d677c9e.zip cpython-51d06abc99cf6e106acc554aa39ab0813d677c9e.tar.gz cpython-51d06abc99cf6e106acc554aa39ab0813d677c9e.tar.bz2 |
importlib.import_module is better these days
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/simple_stmts.rst | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index beb4623..276a0da 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -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``. The specification for relative imports is contained within :pep:`328`. - -.. index:: builtin: __import__ - -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. +:func:`importlib.import_module` is provided to support applications that +determine which modules need to be loaded dynamically. .. _future: |