[issue41565] from os.path import join join('3', '{:3') return '{:3' in windows

Ronald Oussoren report at bugs.python.org
Mon Aug 17 03:54:04 EDT 2020


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

I'm fairly sure this is intended behaviour, see <https://docs.python.org/3.8/library/os.path.html#os.path.join>.

The second arguments is "{:3", the colon means this is interpreted as the the relative path "3" on drive "}:".  I'm not sure if "}" could ever be valid drive letter, but ":" can definitely be used in filenames.

----------
nosy: +ronaldoussoren -2262720766

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


More information about the Python-bugs-list mailing list