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

Masklinn masklinn at masklinn.net
Sun Nov 21 22:36:43 CET 2010


On 2010-11-21, at 22:21 , Bruce Leban wrote:
> It is an improvement if there's no function. I think
> 
>    any(i > 3 for i in foo)
> 
> is more readable than
> 
>    any(map(lambda i: i > 3, foo))
Yes, but that's a different situation than the one Andy posted.



More information about the Python-ideas mailing list