Message94276
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. |
|
Date |
User |
Action |
Args |
2009-10-20 13:53:23 | mark.dickinson | set | recipients:
+ mark.dickinson, oggust |
2009-10-20 13:53:23 | mark.dickinson | set | messageid: <1256046803.04.0.349199148652.issue7176@psf.upfronthosting.co.za> |
2009-10-20 13:53:21 | mark.dickinson | link | issue7176 messages |
2009-10-20 13:53:21 | mark.dickinson | create | |
|