summaryrefslogtreecommitdiffstats
path: root/Doc/library/pkgutil.rst
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-12-10 22:13:38 (GMT)
committerBrett Cannon <brett@python.org>2016-12-10 22:13:38 (GMT)
commitbc538e38527bf836291be5b6ac28644b27abd07e (patch)
tree7f93974c167eca30eaa00b02f7bf5a75bfc5646e /Doc/library/pkgutil.rst
parentcd2a201e5bb33c9b44401a91e10189be87885efe (diff)
downloadcpython-bc538e38527bf836291be5b6ac28644b27abd07e.zip
cpython-bc538e38527bf836291be5b6ac28644b27abd07e.tar.gz
cpython-bc538e38527bf836291be5b6ac28644b27abd07e.tar.bz2
Issue #28424: Document pkgutil.get_data() doesn't work with namespace packages.
Thanks to Douglas Greiman for the patch.
Diffstat (limited to 'Doc/library/pkgutil.rst')
-rw-r--r--Doc/library/pkgutil.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/pkgutil.rst b/Doc/library/pkgutil.rst
index abeac62..b9e76f7 100644
--- a/Doc/library/pkgutil.rst
+++ b/Doc/library/pkgutil.rst
@@ -219,4 +219,6 @@ support.
If the package cannot be located or loaded, or it uses a :term:`loader`
which does not support :meth:`get_data <importlib.abc.ResourceLoader.get_data>`,
- then ``None`` is returned.
+ then ``None`` is returned. In particular, the :term:`loader` for
+ :term:`namespace packages <namespace package>` does not support
+ :meth:`get_data <importlib.abc.ResourceLoader.get_data>`.