[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 <https://bugs.python.or

[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/Jet