[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