[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 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 rep...@bugs.python.org
http://bugs.python.org/issue23535
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-02-27 Thread Eugene Bright

Changes by Eugene Bright hex...@gmail.com:


--
type:  - behavior
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23535
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23535
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com