]> granicus.if.org Git - python/commitdiff
importlib.import_module is better these days
authorBenjamin Peterson <benjamin@python.org>
Thu, 14 May 2009 00:33:10 +0000 (00:33 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 14 May 2009 00:33:10 +0000 (00:33 +0000)
Doc/reference/simple_stmts.rst

index beb4623bf2f69a9a5a4fd145aba32708ac121e77..276a0da50caddf18317906122fef5b4699ec0977 100644 (file)
@@ -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: