[issue42129] Support resources in namespace packages

Jason R. Coombs report at bugs.python.org
Sun Feb 28 04:18:18 EST 2021


Jason R. Coombs <jaraco at jaraco.com> added the comment:

> I would harmonize towards what the concrete implementations...

For FileReader and ZipReader, both rely on TraversableResources to implement contents, which rely on `files().iterdir()`, which could raise FileNotFoundError and definitely don't return lists. Most importantly, this method is an abstract method, so subclasses can't rely on it (must override it). Searching Github, I couldn't find any other classes subclassing this ABC.

----------

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


More information about the Python-bugs-list mailing list