[Python-Dev] Rationale for sum()'s design?

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 15 01:06:55 CET 2005

Eric Nieuwland wrote:
> Perhaps the second argument should not be optional to emphasise this. 
> After all, there's much more to sum() than numbers.

I think practicality beats purity here. Using it on
numbers is surely an extremely common case.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list