This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, oggust
Date 2009-10-20.13:53:21
SpamBayes Score 0.00022937349
Marked as misclassified No
Message-id <1256046803.04.0.349199148652.issue7176@psf.upfronthosting.co.za>
In-reply-to
Content
To sum lists, you need to supply a second argument to sum:

>>> sum([[1, 2], ['x', 'y']], [])
[1, 2, 'x', 'y']

The default value of the second argument is 0, which is why you're seeing 
the TypeError.
History
Date User Action Args
2009-10-20 13:53:23mark.dickinsonsetrecipients: + mark.dickinson, oggust
2009-10-20 13:53:23mark.dickinsonsetmessageid: <1256046803.04.0.349199148652.issue7176@psf.upfronthosting.co.za>
2009-10-20 13:53:21mark.dickinsonlinkissue7176 messages
2009-10-20 13:53:21mark.dickinsoncreate