[New-bugs-announce] [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")
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>

More information about the New-bugs-announce mailing list