Serhiy Storchaka added the comment:
I afraid that failing on os.path.join('', '/path') or os.path.join('.',
'/path') can break a lot of code.
> I'd be in favor of preserving the drive when encountering a component
> starting with a separator.
Already done (issue19456).
>>> import ntpath
>>> ntpath.join('c:foo', '/bar')
'c:/bar'
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30906>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com