summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-12-13 18:58:47 (GMT)
committerBrett Cannon <brett@python.org>2013-12-13 18:58:47 (GMT)
commit706a7296d7502ea62036de9cbfad27008324e30f (patch)
tree02e28ec97e35dcc5667e603f572e990202b6be53 /Doc
parent18701160cc67a3523e77d16879c8c9f8080f8685 (diff)
parent98620d87f2e011cbdea384c1822a3325b491d048 (diff)
downloadcpython-706a7296d7502ea62036de9cbfad27008324e30f.zip
cpython-706a7296d7502ea62036de9cbfad27008324e30f.tar.gz
cpython-706a7296d7502ea62036de9cbfad27008324e30f.tar.bz2
merge for issue #19963
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/importlib.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index c4e3594..867674e 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -82,10 +82,13 @@ Functions
derived from :func:`importlib.__import__`, including requiring the package
from which an import is occurring to have been previously imported
(i.e., *package* must already be imported). The most important difference
- is that :func:`import_module` returns the most nested package or module
- that was imported (e.g. ``pkg.mod``), while :func:`__import__` returns the
+ is that :func:`import_module` returns the specified package or module
+ (e.g. ``pkg.mod``), while :func:`__import__` returns the
top-level package or module (e.g. ``pkg``).
+ .. versionchanged:: 3.3
+ Parent packages are automatically imported.
+
.. function:: find_loader(name, path=None)
Find the loader for a module, optionally within the specified *path*. If the