summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-12-04 22:52:07 (GMT)
committerBrett Cannon <brett@python.org>2015-12-04 22:52:07 (GMT)
commit3ad18dc7a7a5f0613ad9ce787cd92002a556fe7b (patch)
treec8484b422797771fb406c6acbe4e1295657dc672
parentce2650fda4a76943394ed78942eadb07623d63cd (diff)
parentf4f25fe576ca86a51c8e4f98a801f32879d7a582 (diff)
downloadcpython-3ad18dc7a7a5f0613ad9ce787cd92002a556fe7b.zip
cpython-3ad18dc7a7a5f0613ad9ce787cd92002a556fe7b.tar.gz
cpython-3ad18dc7a7a5f0613ad9ce787cd92002a556fe7b.tar.bz2
Merge for issue #25500
-rw-r--r--Doc/reference/import.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst
index d549b26..2144c1f 100644
--- a/Doc/reference/import.rst
+++ b/Doc/reference/import.rst
@@ -29,11 +29,10 @@ such as the importing of parent packages, and the updating of various caches
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