Favorite non-python language trick?

Terry Reedy tjreedy at udel.edu
Fri Jul 1 23:28:43 EDT 2005


"Devan L" <devlai at gmail.com> wrote in message 
news:1120245884.872772.231420 at o13g2000cwo.googlegroups.com...
> With the exception of reduce(lambda x,y:x*y, sequence), reduce can be
> replaced with sum, and Guido wants to add a product function.

The update function is not at all limited to sums and products, but can be 
any callable with the appropriate signature.  The new any() and all() 
functions are examples that use other updates.

Terry J. Reedy






More information about the Python-list mailing list