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

2020-02-02 Thread 徐彻
徐彻 added the comment: Thank you for your explanation. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

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

2020-02-01 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.9 ___ Python tracker ___

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

2020-02-01 Thread Eryk Sun
Eryk Sun added the comment: A Windows path reserves the following characters: * null, as the string terminator * slash and backslash, as path separators * colon as the second character in the first component of a non-UNC path, since it's a drive path Additionally, a normalized path

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

2020-01-31 Thread 徐彻
New submission from 徐彻 : 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: