Python's simplicity philosophy

eichin at metacarta.com eichin at metacarta.com
Wed Nov 12 18:39:47 CET 2003


> you're comfortable with the notation (and more general, I can't find
> a builtin way to say "coerced multiply" without lambda, in 30 seconds
> of poking around.)  ...

Sigh, I just realized - everyone talking about operator.mul was being
*literal*, not abstract, there's actually an operator package :-)  Oops.
Not that reduce(operator.mul, range(1,6)) is any more readable, I'd
still define Product around it...




More information about the Python-list mailing list