pickle.load() on an dictionary of dictionaries doesn't load full data structure on first call

2009-02-22 Thread James Pearson
I've been using irclib to write a simple irc bot, and I was running into some difficulties with pickle. Upon some experimentation with pdb, I found that pickle.load() doesn't load *all* of the data the _first_ time it's called. For instance, I have this dictionary pickled: {'xiong_chiamiov':

Re: pickle.load() on an dictionary of dictionaries doesn't load full data structure on first call

2009-02-22 Thread Albert Hopkins
On Sun, 2009-02-22 at 16:15 -0800, James Pearson wrote: I've been using irclib to write a simple irc bot, and I was running into some difficulties with pickle. Upon some experimentation with pdb, I found that pickle.load() doesn't load *all* of the data the _first_ time it's called. For

Re: pickle.load() on an dictionary of dictionaries doesn't load full data structure on first call

2009-02-22 Thread James Pearson
Ah, thank you, you explained that quite well and opened my eyes to some things I very much need to improve in my code. I'll keep those list-etiquette things in mind next time. On Sun, Feb 22, 2009 at 5:10 PM, Albert Hopkins mar...@letterboxes.orgwrote: On Sun, 2009-02-22 at 16:15 -0800, James