A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-March/052194.html below:

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

[Python-Dev] Rationale for sum()'s design? [Python-Dev] Rationale for sum()'s design?Batista, Facundo FBatista at uniFON.com.ar
Tue Mar 15 16:58:51 CET 2005
[Guido van Rossum]

#- > 1. When omitting the second argument, would supplying an 
#- empty list return 0,
#- > None or raise an exception?
#- 
#- Good question...

I'd go for None:

- Is a good default for a non-existing argument.

- If won't get None from sum() in other case (unless you do sum(None), but
you should be aware of that).


.    Facundo

Bitácora De Vuelo: http://www.taniquetil.com.ar/plog
PyAr - Python Argentina: http://pyar.decode.com.ar/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20050315/58d3f3e4/attachment.htm
More information about the Python-Dev mailing list

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