[Python-checkins] cpython (3.5): Issue #28424: Document pkgutil.get_data() doesn't work with namespace packages.
brett.cannon
python-checkins at python.org
Sat Dec 10 17:15:30 EST 2016
https://hg.python.org/cpython/rev/3484933ba904
changeset: 105579:3484933ba904
branch: 3.5
parent: 105574:1a955981b263
user: Brett Cannon <brett at python.org>
date: Sat Dec 10 14:13:38 2016 -0800
summary:
Issue #28424: Document pkgutil.get_data() doesn't work with namespace packages.
Thanks to Douglas Greiman for the patch.
files:
Doc/library/pkgutil.rst | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Doc/library/pkgutil.rst b/Doc/library/pkgutil.rst
--- a/Doc/library/pkgutil.rst
+++ b/Doc/library/pkgutil.rst
@@ -219,4 +219,6 @@
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>`.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list