
Dec. 5, 2009
4:45 p.m.
On Sat, Dec 5, 2009 at 12:55 PM, Ram Rachum <cool-rr@cool-rr.com> wrote:
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.
In your proposed implementation, sum([]) would be undefined. -- André Engels, andreengels@gmail.com