Message230103
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. |
|
Date |
User |
Action |
Args |
2014-10-27 20:22:58 | r.david.murray | set | recipients:
+ r.david.murray, tim.golden, zach.ware, steve.dower, tegavu |
2014-10-27 20:22:58 | r.david.murray | set | messageid: <1414441378.03.0.879655043442.issue22744@psf.upfronthosting.co.za> |
2014-10-27 20:22:58 | r.david.murray | link | issue22744 messages |
2014-10-27 20:22:57 | r.david.murray | create | |
|