[Python-ideas] Adding an optional function argument to all() and any() builtins

Masklinn masklinn at masklinn.net
Sun Nov 21 21:20:45 CET 2010

On 2010-11-21, at 21:11 , MRAB wrote:
> if any(mytestfunction(i) for i in mylist):
>    foo()

is not an improvement over `if any(map(mytestfunction, mylist))` or `if any(imap(mytestfunction, mylist))`

More information about the Python-ideas mailing list