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 d.ragusa
Recipients d.ragusa
Date 2020-04-22.00:03:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Can we improve pathlib.relative_to(other) so that it handles the case of a path not being a direct child of other, like os.path.relpath?

For example:
Path('/some/thing').relative_to('/foo') -> Path('../some/thing')

At the moment it just raises an exception.
Date User Action Args
2020-04-22 00:03:03d.ragusasetrecipients: + d.ragusa
2020-04-22 00:03:03d.ragusasetmessageid: <>
2020-04-22 00:03:03d.ragusalinkissue40358 messages
2020-04-22 00:03:02d.ragusacreate