This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry, indygreg
Date 2019-02-26.23:45:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <53809FB6-AAA3-4BDF-B1DD-7FA215C58724@python.org>
In-reply-to <1551215100.55.0.236644911032.issue36128@roundup.psfhosted.org>
Content
On Feb 26, 2019, at 13:05, Gregory Szorc <report@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.
History
Date User Action Args
2019-02-26 23:45:24barrysetrecipients: + barry, indygreg
2019-02-26 23:45:24barrylinkissue36128 messages
2019-02-26 23:45:24barrycreate