New submission from Krzysztof Rusek <sav...@gmail.com>:
importlib.resources.path() function may return a path to a file with different contents than expected. This may happen when using a custom loader implementation that uses fake filenames (like '<string>'). I'm attaching a reproduction test (resources.py). ---------- components: Library (Lib) files: resources.py messages: 364352 nosy: Krzysztof Rusek priority: normal severity: normal status: open title: importlib.resources.path() may return incorrect path when using custom loader versions: Python 3.7, Python 3.8, Python 3.9 Added file: https://bugs.python.org/file48978/resources.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39980> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com