Author r.david.murray
Recipients r.david.murray, steve.dower, tegavu, tim.golden, zach.ware
Date 2014-10-27.20:22:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414441378.03.0.879655043442.issue22744@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, to os.path, paths are just strings, and there's no reference made to the actual file system.  The blanks are valid on unix, for example (unless you pass them to the shell without escaping them).  As Steve indicated, parts of Pathlib might make a different decision about that, but os.path...can't really, and still remain a mostly-portable API (not to mention backward compatibility).

Or, to look at this another way, Python is giving you exactly the errors that you would get from Windows itself if you passed it the strings you are passing it, and no more.  Python is faithfully constructing those strings according to *string* rules, and it is Windows that is transforming *some* of them into other strings.
History
Date User Action Args
2014-10-27 20:22:58r.david.murraysetrecipients: + r.david.murray, tim.golden, zach.ware, steve.dower, tegavu
2014-10-27 20:22:58r.david.murraysetmessageid: <1414441378.03.0.879655043442.issue22744@psf.upfronthosting.co.za>
2014-10-27 20:22:58r.david.murraylinkissue22744 messages
2014-10-27 20:22:57r.david.murraycreate