[New-bugs-announce] [issue39980] importlib.resources.path() may return incorrect path when using custom loader
Krzysztof Rusek
report at bugs.python.org
Mon Mar 16 14:56:13 EDT 2020
New submission from Krzysztof Rusek <savix5 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue39980>
_______________________________________
More information about the New-bugs-announce
mailing list