[issue23535] os.path.join() wrong concatenation of "C:" on Windows

2015-02-27 Thread Eugene Bright
Eugene Bright added the comment: Sorry for disturbing. I'll read docs more careful next time. -- ___ Python tracker ___ ___ Python-bug

[issue23535] os.path.join() wrong concatenation of "C:" on Windows

2015-02-27 Thread Eric V. Smith
Eric V. Smith added the comment: I agree this isn't a bug, due to per-drive current directories on Windows. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue23535] os.path.join() wrong concatenation of "C:" on Windows

2015-02-27 Thread Ben Hoyt
Ben Hoyt added the comment: Sorry, but this is operating as designed and documented. See the docs here: https://docs.python.org/3.4/library/os.path.html#os.path.join "On Windows ... since there is a current directory for each drive, os.path.join("c:", "foo") represents a path relative to the c

[issue23535] os.path.join() wrong concatenation of "C:" on Windows

2015-02-27 Thread Eugene Bright
Changes by Eugene Bright : -- type: -> behavior versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue23535] os.path.join() wrong concatenation of "C:" on Windows

2015-02-27 Thread Eugene Bright
New submission from Eugene Bright: Hello! I found strange os.path.join() behavior on Windows. It works fine in common case. >>> os.path.join("C", "filename") 'C\\filename' But if first argument is "C:" there are no backslashes added at all! >>> os.path.join("C:", "filename") 'C:filename' But