[issue31617] os.path.join() return wrong value in windows

Eryk Sun report at bugs.python.org
Thu Sep 28 07:33:46 EDT 2017


Eryk Sun <eryksun at gmail.com> added the comment:

This is explained in the docs:

    Join one or more path components intelligently.... If a 
    component is an absolute path, all previous components are 
    thrown away and joining continues from the absolute path 
    component. On Windows, the drive letter is not reset when 
    an absolute path component (e.g., r'\foo') is encountered.

----------
nosy: +eryksun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31617>
_______________________________________


More information about the Python-bugs-list mailing list