From c9a8a4aab8873fe1b12758616bebba1d7f38675f Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 14 Apr 2010 21:36:49 +0000 Subject: [PATCH] #8370: fix module name in backported doc addition. --- Doc/library/functions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index cfb1945988..928e73a54e 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1448,8 +1448,8 @@ available. They are listed here in alphabetical order. 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. -- 2.50.1