[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/
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com