Message236739
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! |
|
Date |
User |
Action |
Args |
2015-02-27 12:20:32 | Eugene Bright | set | recipients:
+ Eugene Bright |
2015-02-27 12:20:32 | Eugene Bright | set | messageid: <1425039632.15.0.00321481955838.issue23535@psf.upfronthosting.co.za> |
2015-02-27 12:20:32 | Eugene Bright | link | issue23535 messages |
2015-02-27 12:20:31 | Eugene Bright | create | |
|