[New-bugs-announce] [issue23535] os.path.join() wrong concatenation of "C:" on Windows
Eugene Bright
report at bugs.python.org
Fri Feb 27 13:20:32 CET 2015
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 I expect two inserted backslashes...
>>> sys.version
'3.4.1 |Anaconda 2.1.0 (64-bit)| (default, Sep 24 2014, 18:32:42) [MSC v.1600 64 bit (AMD64)]'
Is there a bug?
Thanks!
----------
messages: 236739
nosy: Eugene Bright
priority: normal
severity: normal
status: open
title: os.path.join() wrong concatenation of "C:" on Windows
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23535>
_______________________________________
More information about the New-bugs-announce
mailing list