Steve Dower added the comment:
There's absolutely no risk of ignoring later parameters or raising a ValueError
here, so please don't let those cloud the discussion.
The behaviour of Python 3.6 seems to be correct for every case except:
>>> os.path.join("C:\\dir1", "D:dir2")
D:dir2
(expected D:\dir1\dir2)
However, that's an incredible edge case that virtually nobody relies on and I'm
sure nobody expects.
The other combinations of relative and absolute paths seem to be correct. I'm
not convinced that changing the behaviour of Python 2.7 significantly improves
either the maintainability or security of that release, so unless someone wants
to argue about that I'm closing this as not a bug. (And if someone *does* want
to argue about it, don't bother arguing with me :) )
----------
resolution: -> not a bug
stage: test needed -> resolved
status: open -> closed
_______________________________________
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