[Python-ideas] Why does `sum` use a default for the `start` parameter?

Ram Rachum cool-rr at cool-rr.com
Sat Dec 5 12:55:37 CET 2009

I noticed that `sum` tries to add zero to your iterable. Why? Why not just skip 
adding any start value if none is specified?

This current behavior is preventing me from using `sum` to add up a bunch of non-
number objects.


More information about the Python-ideas mailing list