Pickling dictionaries containing dictionaries: failing, recursion-style!
David Tweet
davidtweet at gmail.com
Sat Dec 1 17:27:35 EST 2007
Are you opening the file in binary mode ("rb") before doing pickle.load on it?
On 01 Dec 2007 14:13:33 -0800, Paul Rubin
<"http://phr.cx"@nospam.invalid> wrote:
> lysdexia <doug.shawhan at gmail.com> writes:
> > self.wordDB[word] = [self.words.count(word), wordsWeights]
>
> what is self.words.count? Could it be an iterator? I don't think you
> can pickle those.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
-David
More information about the Python-list
mailing list