This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Roffild
Recipients Roffild, paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-11-13.00:06:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542067576.58.0.788709270274.issue35223@psf.upfronthosting.co.za>
In-reply-to
Content
Code:
import os
print(os.path.join("C:/123\\345", "\\", "folder///filename.bin"))
import pathlib
print(pathlib.PureWindowsPath("C:/123\\345", "\\", "folder///filename.bin"))

Result:
C:\folder///filename.bin
C:\folder\filename.bin

Expected result for Windows:
C:\123\345\folder\filename.bin

The number of slashes should be controlled by the library. Replacing / on \ should also depend on the OS.
History
Date User Action Args
2018-11-13 00:06:16Roffildsetrecipients: + Roffild, paul.moore, tim.golden, zach.ware, steve.dower
2018-11-13 00:06:16Roffildsetmessageid: <1542067576.58.0.788709270274.issue35223@psf.upfronthosting.co.za>
2018-11-13 00:06:16Roffildlinkissue35223 messages
2018-11-13 00:06:16Roffildcreate