Message315422
| 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:21 | Alok Singh | set | recipients: + Alok Singh |
| 2018-04-17 21:23:21 | Alok Singh | set | messageid: <1524000201.84.0.682650639539.issue33301@psf.upfronthosting.co.za> |
| 2018-04-17 21:23:21 | Alok Singh | link | issue33301 messages |
| 2018-04-17 21:23:21 | Alok Singh | create | |