[Python-checkins] cpython (merge 3.5 -> default): Merge for issue #25500

brett.cannon python-checkins at python.org
Fri Dec 4 17:52:13 EST 2015


https://hg.python.org/cpython/rev/0259c2c555fb
changeset:   99432:0259c2c555fb
parent:      99430:ad855c779bf3
parent:      99431:567baf74ebad
user:        Brett Cannon <brett at python.org>
date:        Fri Dec 04 14:52:07 2015 -0800
summary:
  Merge for issue #25500

files:
  Doc/reference/import.rst |  9 ++++-----
  1 files changed, 4 insertions(+), 5 deletions(-)


diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst
--- a/Doc/reference/import.rst
+++ b/Doc/reference/import.rst
@@ -29,11 +29,10 @@
 a name binding operation.
 
 When calling :func:`__import__` as part of an import statement, the
-import system first checks the module global namespace for a function by
-that name. If it is not found, then the standard builtin :func:`__import__`
-is called. Other mechanisms for invoking the import system (such as
-:func:`importlib.import_module`) do not perform this check and will always
-use the standard import system.
+standard builtin :func:`__import__` is called. Other mechanisms for
+invoking the import system (such as :func:`importlib.import_module`) may
+choose to subvert :func:`__import__` and use its own solution to
+implement import semantics.
 
 When a module is first imported, Python searches for the module and if found,
 it creates a module object [#fnmo]_, initializing it.  If the named module

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list