Author d.ragusa
Recipients d.ragusa
Date 2020-04-22.00:03:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587513783.17.0.6950267733.issue40358@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-04-22 00:03:03d.ragusasetrecipients: + d.ragusa
2020-04-22 00:03:03d.ragusasetmessageid: <1587513783.17.0.6950267733.issue40358@roundup.psfhosted.org>
2020-04-22 00:03:03d.ragusalinkissue40358 messages
2020-04-22 00:03:02d.ragusacreate