[Python-Dev] sum(...) limitation
Andrea Griffini
agriff at tin.it
Fri Aug 1 23:48:37 CEST 2014
More information about the Python-Dev mailing list
Fri Aug 1 23:48:37 CEST 2014
- Previous message: [Python-Dev] Summary of Python tracker Issues
- Next message: [Python-Dev] sum(...) limitation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
help(sum) tells clearly that it should be used to sum numbers and not strings, and with strings actually fails. However sum([[1,2,3],[4],[],[5,6]], []) concatenates the lists. Is this to be considered a bug? Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140801/f70a8c83/attachment.html>
- Previous message: [Python-Dev] Summary of Python tracker Issues
- Next message: [Python-Dev] sum(...) limitation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list