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 barneygale
Recipients 4-launchpad-kalvdans-no-ip-org, ChrisBarker, John-Hennig, Zim, barneygale, brett.cannon, docs@python, eryksun, florisla, paul.moore, veky
Date 2022-04-04.13:40:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1649079635.41.0.513424194205.issue39090@roundup.psfhosted.org>
In-reply-to
Content
The docs for PurePath.is_absolute() say:

> A path is considered absolute if it has both a root and (if the flavour allows) a drive

This does not preclude it from having ".." segments.

PurePath.absolute() is documented as of bpo-29688 / 3.11, see: https://docs.python.org/3.11/library/pathlib.html#pathlib.Path.absolute

The documentation for the absolute() method is deliberately placed alongside resolve() for ease of comparison. Both methods make a path absolute, but resolve() also follows symlinks, and consequently is able to safely elide ".." segments.
History
Date User Action Args
2022-04-04 13:40:35barneygalesetrecipients: + barneygale, brett.cannon, paul.moore, docs@python, eryksun, veky, ChrisBarker, Zim, 4-launchpad-kalvdans-no-ip-org, florisla, John-Hennig
2022-04-04 13:40:35barneygalesetmessageid: <1649079635.41.0.513424194205.issue39090@roundup.psfhosted.org>
2022-04-04 13:40:35barneygalelinkissue39090 messages
2022-04-04 13:40:35barneygalecreate