Eric V. Smith <e...@trueblade.com> added the comment:

As far as which path components are returned, I think this is working as 
designed. The documentation for os.path.join says:

"""
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.
"""

pathlib's documentation for creating PurePath objects says:

"""
When several absolute paths are given, the last is taken as an anchor 
(mimicking os.path.join()’s behaviour)
"""

----------
nosy: +eric.smith

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35223>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to