feature request: mul

Jacek Generowicz jacek.generowicz at cern.ch
Tue Jun 17 11:08:22 EDT 2003


mis6 at pitt.edu (Michele Simionato) writes:

> import operator
> multi_and=lambda it: reduce(operator.mul,it)
> if multi_and(condition):
>    dosomething()
> 
> but frankly it is too ugly for my taste. Having
> 'sum' and 'mul' the use cases for 'reduce' would
> drop, which I think is a good thing.

You don't like abstraction ?




More information about the Python-list mailing list