Message320016
| Author | serhiy.storchaka |
|---|---|
| Recipients | Alok Singh, aberger5b, barry, pitrou, serhiy.storchaka |
| Date | 2018-06-20.03:57:27 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1529467047.82.0.56676864532.issue33301@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
There was a similar (closed) issue about making Path an iterable. The problem with both these related ideas is that they are ambiguous. Does it means that a directory contains a specified file, or that a path contains a specified path component, or that a specified path is a prefix of other path? There are third-party pathlib-like implementations that make Path a str subclass. They have both __iter__ and __contains__ inherited from str, but with different meaning. I'm -1. It is better to write explicitly what you mean than allow the computer to guess. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-06-20 03:57:27 | serhiy.storchaka | set | recipients: + serhiy.storchaka, barry, pitrou, Alok Singh, aberger5b |
| 2018-06-20 03:57:27 | serhiy.storchaka | set | messageid: <1529467047.82.0.56676864532.issue33301@psf.upfronthosting.co.za> |
| 2018-06-20 03:57:27 | serhiy.storchaka | link | issue33301 messages |
| 2018-06-20 03:57:27 | serhiy.storchaka | create | |