Thomas 'PointedEars' Lahn wrote:

>     od = OrderedDict()

This is pointless, then.

>     […]
>     od = OrderedDict(map(lambda item: (item[0], 0), items))
>     for item in items: od[item[0]] += item[1]

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to