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 serhiy.storchaka
Recipients akira, barry, ju-sh, maxballenger, mdk, pitrou, r.david.murray, serhiy.storchaka, thejcannon, victorg
Date 2020-07-08.06:57:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594191423.97.0.0636093967177.issue21041@roundup.psfhosted.org>
In-reply-to
Content
Maxwell, in your case a more correct and obvious way is

    Path('/tmp') in filepath.parents

although it may be not very efficient. Using the is_relative_to() method may be more efficient and obvious.
History
Date User Action Args
2020-07-08 06:57:04serhiy.storchakasetrecipients: + serhiy.storchaka, barry, pitrou, r.david.murray, akira, mdk, thejcannon, ju-sh, victorg, maxballenger
2020-07-08 06:57:03serhiy.storchakasetmessageid: <1594191423.97.0.0636093967177.issue21041@roundup.psfhosted.org>
2020-07-08 06:57:03serhiy.storchakalinkissue21041 messages
2020-07-08 06:57:03serhiy.storchakacreate