Commit bc538e38 authored by Brett Cannon's avatar Brett Cannon

Issue #28424: Document pkgutil.get_data() doesn't work with namespace packages.

Thanks to Douglas Greiman for the patch.
parent cd2a201e
......@@ -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>`.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment