R. David Murray added the comment: I would classify that as a bug in mkdir (it should raise an error). The blank-elimination is almost certainly being done at the OS layer (windows) rather than the Python layer, though, and I doubt it is something we can fix at the Python layer for backward compatibility reasons. (If we can, it would only be in 3.5, so I'm changing the version).
It is definitely *not* a bug in join. Probably this issue should be closed as not a bug. ---------- components: +Windows nosy: +r.david.murray, steve.dower, tim.golden, zach.ware title: os.path.join on Windows creates invalid paths with spaces -> os.mkdir on Windows silently strips trailing blanks from directory names versions: +Python 3.5 -Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22744> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com