[Python-checkins] r80082 - python/trunk/Doc/library/functions.rst

georg.brandl python-checkins at python.org
Wed Apr 14 23:36:49 CEST 2010


Author: georg.brandl
Date: Wed Apr 14 23:36:49 2010
New Revision: 80082

Log:
#8370: fix module name in backported doc addition.

Modified:
   python/trunk/Doc/library/functions.rst

Modified: python/trunk/Doc/library/functions.rst
==============================================================================
--- python/trunk/Doc/library/functions.rst	(original)
+++ python/trunk/Doc/library/functions.rst	Wed Apr 14 23:36:49 2010
@@ -1448,8 +1448,8 @@
       programming.
 
    This function is invoked by the :keyword:`import` statement.  It can be
-   replaced (by importing the :mod:`builtins` module and assigning to
-   ``builtins.__import__``) in order to change semantics of the
+   replaced (by importing the :mod:`__builtin__` module and assigning to
+   ``__builtin__.__import__``) in order to change semantics of the
    :keyword:`import` statement, but nowadays it is usually simpler to use import
    hooks (see :pep:`302`).  Direct use of :func:`__import__` is rare, except in
    cases where you want to import a module whose name is only known at runtime.


More information about the Python-checkins mailing list