This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients Roffild, eric.smith, paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-11-13.00:27:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542068840.86.0.788709270274.issue35223@psf.upfronthosting.co.za>
In-reply-to
Content
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)
"""
History
Date User Action Args
2018-11-13 00:27:20eric.smithsetrecipients: + eric.smith, paul.moore, tim.golden, zach.ware, steve.dower, Roffild
2018-11-13 00:27:20eric.smithsetmessageid: <1542068840.86.0.788709270274.issue35223@psf.upfronthosting.co.za>
2018-11-13 00:27:20eric.smithlinkissue35223 messages
2018-11-13 00:27:20eric.smithcreate