[Python-Dev] Product function patch [issue 1093] (original) (raw)
skip at pobox.com skip at pobox.com
Mon Sep 3 14:24:30 CEST 2007
- Previous message: [Python-Dev] Product function patch [issue 1093]
- Next message: [Python-Dev] Product function patch [issue 1093]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>> At one time Guido mentioned adding a built-in product() function to
>> cover some of the remaining use cases of the built-in reduce().
Martin> What is the use case for product()?
As I recall, there were basically two uses of reduce(), to sum a series or (less frequently) to take the product of a series. sum() obviously takes care of the first use case. product() would take care of the second.
Skip
- Previous message: [Python-Dev] Product function patch [issue 1093]
- Next message: [Python-Dev] Product function patch [issue 1093]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]