Paddy:
>>> _ = [d[x0].append(x1) for x0,x1 in data]

I think that you probably want:

for text, num in data: d[text].append(num)


ardief:
> thanks to everyone for the help, and the speed of it! It's really
> useful and I will spend some time working on understanding the code
> you posted. I'd be so lost without this group...

If you have Python 2.5, and if you don't have particular requirements,
I think the best solution is Paddy's.

Bye,
bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to