[issue39515] pathlib won't strip "\n" in path

徐彻 report at bugs.python.org
Fri Jan 31 22:45:08 EST 2020


New submission from 徐彻 <chrisxuche at gmail.com>:

Pathlib won't strip "\n" in path. Of course, "\n" should exist in a legal path.
For example:

>>>a=pathlib.Path(pathlib.Path("C:/Program Files/\n"),"./JetBrains/\n")
>>>a
WindowsPath('C:/Program Files/\n/JetBrains/\n')

----------
components: Library (Lib)
messages: 361149
nosy: 徐彻
priority: normal
severity: normal
status: open
title: pathlib won't strip "\n" in path
type: behavior
versions: Python 3.8

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


More information about the Python-bugs-list mailing list