]> granicus.if.org Git - python/commitdiff
Issue #28424: Document pkgutil.get_data() doesn't work with namespace packages.
authorBrett Cannon <brett@python.org>
Sat, 10 Dec 2016 22:13:38 +0000 (14:13 -0800)
committerBrett Cannon <brett@python.org>
Sat, 10 Dec 2016 22:13:38 +0000 (14:13 -0800)
Thanks to Douglas Greiman for the patch.

Doc/library/pkgutil.rst

index abeac62952dfec760b218342877027618922eab9..b9e76f7ba3fc4487c0f8a6aa04aeceec3d1992fd 100644 (file)
@@ -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>`.