Why bool( object )?

Paul Rubin http
Fri May 1 18:47:49 EDT 2009


Aaron Brady <castironpi at gmail.com> writes:
> I think you are looking at an 'ireduce' function, which doesn't
> exist in 'itertools' yet.

Nothing is being done with the return value.

  sum(1 for x in imap(func, seq)) 

is enough to force evaluation of func on each element of seq.



More information about the Python-list mailing list