Actually, if you use Google code search, you'll find that multiplying the numbers in a list doesn't have much use at all. After summing numbers, joining strings is by far the most common usage -- which is much better done with the str.join() method. (PS. I rejected the issue; product() was proposed and rejected when sum() was originally proposed and accepted, and I don't see anything to change my mind.) On 9/3/07, skip at pobox.com <skip at pobox.com> wrote: > > >> 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 > > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org > -- --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4