Idea for key parameter in all() builting, would it be feasible?

Antoon Pardon antoon.pardon at rece.vub.ac.be
Thu Jun 20 06:45:27 EDT 2013


Op 19-06-13 18:14, russ.pobox at gmail.com schreef:
>
>>>> all(map(lambda x: bool(x), xrange(10**9)))

Since you already have your answer, I just like to get your attention
to the fact the the lambda is superfluous here. Your expression
above is equivallent to

  all(map(bool, xrange(10**9)))





More information about the Python-list mailing list