From: Benjamin Peterson Date: Thu, 14 May 2009 00:33:10 +0000 (+0000) Subject: importlib.import_module is better these days X-Git-Tag: v2.7a1~1198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51d06abc99cf6e106acc554aa39ab0813d677c9e;p=python importlib.import_module is better these days --- diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index beb4623bf2..276a0da50c 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: