why any( ) instead of firsttrue( ) ?

danieldelay danieldelay at gmail.com
Wed Jun 9 17:24:13 EDT 2010


Le 09/06/2010 08:54, Raymond Hettinger a écrit :
> next(ifilter(None, d), False)

Good, this is rather short and does the job !...
I should try to use more often this  itertools  module.

Thanks

Daniel



More information about the Python-list mailing list