From bc538e38527bf836291be5b6ac28644b27abd07e Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 10 Dec 2016 14:13:38 -0800 Subject: [PATCH] Issue #28424: Document pkgutil.get_data() doesn't work with namespace packages. Thanks to Douglas Greiman for the patch. --- Doc/library/pkgutil.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/pkgutil.rst b/Doc/library/pkgutil.rst index abeac62952..b9e76f7ba3 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 `, - then ``None`` is returned. + then ``None`` is returned. In particular, the :term:`loader` for + :term:`namespace packages ` does not support + :meth:`get_data `. -- 2.40.0