[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented
Dave Sawyer
report at bugs.python.org
Thu Apr 17 23:47:16 CEST 2014
Dave Sawyer added the comment:
http://bugs.python.org/issue1669539 has been partially fixed. On Windows os.path.join('foo', 'a:bar') gives 'a:bar' not 'foo\\a:bar'. However os.path.isabs('a:bar') returns False yet it causes a reset in the join like an absolute path.
'\foo' is considered an absolute path even though calling os.path.abspath on it can yield different results - as if it were a relative path. At minimum we should amend the wording about what resets the join.
----------
nosy: +dsawyer
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15414>
_______________________________________
More information about the Python-bugs-list
mailing list