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 steve.dower
Recipients r.david.murray, steve.dower, tegavu, tim.golden, zach.ware
Date 2014-10-27.20:14:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414440865.99.0.341627275105.issue22744@psf.upfronthosting.co.za>
In-reply-to
Content
Paths are processed by the Windows API. This processing includes (at least):

* resolve to current directory
* convert forward slashes to backslashes
* remove adjacent backslashes
* trim trailing dots and spaces from names
* resolve short path names

This processing can be skipped with the '\\?\' prefix, but in general it shouldn't be.

I would be okay with seeing this processing performed by pathlib so that str(Path("C:\\") / "test    ") == "C:\\test" (or maybe as part of .resolve() - there's another issue where we started discussing this), but I would be really hesitant to change ntpath to do it or detect it.
History
Date User Action Args
2014-10-27 20:14:26steve.dowersetrecipients: + steve.dower, tim.golden, r.david.murray, zach.ware, tegavu
2014-10-27 20:14:25steve.dowersetmessageid: <1414440865.99.0.341627275105.issue22744@psf.upfronthosting.co.za>
2014-10-27 20:14:25steve.dowerlinkissue22744 messages
2014-10-27 20:14:25steve.dowercreate