Re: defaultdicts pickling

2007-07-14 Thread Gabriel Genellina
En Sat, 14 Jul 2007 13:03:01 -0300, Yoav Goldberg <[EMAIL PROTECTED]> escribió: > I need to have a dictionary of dictionaries of numbers, and I would like > the > dictionaries to be defaultdicts, because it makes the code much nicer > (I want to be able to do: d['foo']['bar']+=1 ). > > So nat

defaultdicts pickling

2007-07-14 Thread Yoav Goldberg
Hello, I need to have a dictionary of dictionaries of numbers, and I would like the dictionaries to be defaultdicts, because it makes the code much nicer (I want to be able to do: d['foo']['bar']+=1 ). So naturally, I used: d = defaultdict(lambda :defaultdict(int)) It works great, but now I c