LAMBDA IS IT USELESS?

Quiptic quiptiq at yahoo.com.au
Thu Jul 12 08:20:01 EDT 2001


paul at boddie.net (Paul Boddie) writes:

> In this case, the use of lambda is convenient because * can't behave
> like a function, so you need a quick way of wrapping * up to act like
> one.

Just as an aside, this wrapper already exists:

import operator
>>> reduce(operator.mul, range(1,10))
362880





More information about the Python-list mailing list