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 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:27serhiy.storchakasetrecipients: + serhiy.storchaka, barry, pitrou, Alok Singh, aberger5b
2018-06-20 03:57:27serhiy.storchakasetmessageid: <1529467047.82.0.56676864532.issue33301@psf.upfronthosting.co.za>
2018-06-20 03:57:27serhiy.storchakalinkissue33301 messages
2018-06-20 03:57:27serhiy.storchakacreate