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 Alok Singh
Recipients Alok Singh
Date 2018-04-17.21:23:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524000201.84.0.682650639539.issue33301@psf.upfronthosting.co.za>
In-reply-to
Content
I was thinking today that it would be natural for paths to support __contains__ since then you could write statements like `if file in dir` or `if subdir in dir` cleanly.

The library plumbum appears to already have this, but I think it could be useful in the standard library:

https://plumbum.readthedocs.io/en/latest/_modules/plumbum/path/base.html#Path.__contains__
History
Date User Action Args
2018-04-17 21:23:21Alok Singhsetrecipients: + Alok Singh
2018-04-17 21:23:21Alok Singhsetmessageid: <1524000201.84.0.682650639539.issue33301@psf.upfronthosting.co.za>
2018-04-17 21:23:21Alok Singhlinkissue33301 messages
2018-04-17 21:23:21Alok Singhcreate