Showing content from https://mail.python.org/pipermail/python-dev/2006-April/063759.html below:
[Python-Dev] Any reason that any()/all() do not take a predicate argument?
[Python-Dev] Any reason that any()/all() do not take a predicate argument? [Python-Dev] Any reason that any()/all() do not take a predicate argument?Mikhail Glushenkov bbman at mail.ru
Sat Apr 15 09:30:26 CEST 2006
Andrew Koenig <ark <at> acm.org> writes:
> How about this?
>
> if any(x==5 for x in seq):
Cool! Thank you.
More information about the Python-Dev mailing list
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4