Barry A. Warsaw <ba...@python.org> added the comment:

On Feb 26, 2019, at 13:05, Gregory Szorc <rep...@bugs.python.org> wrote:
> 
> I would think the two would agree about whether a path with separators is a 
> resource or not. The documentation at 
> https://docs.python.org/3.7/library/importlib.html#importlib.abc.ResourceReader
>  implies that resources in subdirectories should not be allowed.

Historical context is in the standalone tracker:

https://gitlab.com/python-devs/importlib_resources/issues/58

Clearly, with the current definition of the API, open_resource() should not 
allow slashes.  Please follow up on the above link if you have opinions about 
changing the behavior.  We would have an opportunity to relax that constraint 
in Python 3.8, if it’s something we want to do.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36128>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to