Dustan wrote: > Anyway, I figured out a way to get the builtin > function 'sum' to work as I need: > sum([[1,2,3],[4,5,6],[7,8,9]], []) >
Hah! No-one expects sum to be used on anything but numbers. Except lists as above. No-one expects sum to be used on anything but numbers, and maybe lists too. ;-) (My apologies for my poor grasp of the Spanish Inquisition sketch; and I was alluding to this thread: http://groups.google.com/group/comp.lang.python/msg/f34525384f8028b5 ) -- http://mail.python.org/mailman/listinfo/python-list