[issue33254] importlib.resources.contents() incorrectly yields an empty list

Barry A. Warsaw report at bugs.python.org
Mon Apr 9 20:29:47 EDT 2018


Barry A. Warsaw <barry at python.org> added the comment:

Note that this is in the case where a user is asking for the contents of a namespace package (which by definition, can't have resources).

+1 on fixing this API wart.  

Will you @brett.cannon will submit a PR?  I'll do a quick review and then backport the change to the standalone library.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33254>
_______________________________________


More information about the Python-bugs-list mailing list