Browse Source

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

Thanks to Douglas Greiman for the patch.
pull/40/head
Brett Cannon 10 years ago
parent
commit
bc538e3852
  1. 4
      Doc/library/pkgutil.rst

4
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>`.
Loading…
Cancel
Save