summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2018-02-03 04:21:14 (GMT)
committerGitHub <noreply@github.com>2018-02-03 04:21:14 (GMT)
commita71397fb6603d0fe673acd7765c74699cd28fe7b (patch)
treeb861446d1911d5861a98df799f209dc12893fa45 /Doc/library/importlib.rst
parent7e4cf8e95d2971ae0d5fb417152183070184293f (diff)
downloadcpython-a71397fb6603d0fe673acd7765c74699cd28fe7b.zip
cpython-a71397fb6603d0fe673acd7765c74699cd28fe7b.tar.gz
cpython-a71397fb6603d0fe673acd7765c74699cd28fe7b.tar.bz2
[3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5504)
* Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages. * Make sure ``__spec__.origin` matches ``__file__`` for namespace packages. https://bugs.python.org/issue32303 https://bugs.python.org/issue32305. (cherry picked from commit bbbcf8693b876daae4469765aa62f8924f39a7d2) Co-authored-by: Barry Warsaw <barry@python.org>
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r--Doc/library/importlib.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index d194362..3415613 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -1077,7 +1077,7 @@ find and load modules.
Name of the place from which the module is loaded, e.g. "builtin" for
built-in modules and the filename for modules loaded from source.
Normally "origin" should be set, but it may be ``None`` (the default)
- which indicates it is unspecified.
+ which indicates it is unspecified (e.g. for namespace packages).
.. attribute:: submodule_search_locations