Re: Unpickle error -- "object has no attribute ...."

2011-08-30 Thread Peter Otten
luvspython wrote: > THANK YOU! Special-casing "__dict__" did the trick. Not sure I'd > have ever figured that out, which leads to a different question: > > I can figure out most things, though perhaps very slowly and > painfully, if I can trace through code. I use WingIDE (love it), but > the

Re: Unpickle error -- "object has no attribute ...."

2011-08-29 Thread Chris Angelico
On Tue, Aug 30, 2011 at 2:22 AM, luvspython wrote: > I can figure out most things, though perhaps very slowly and > painfully, if I can trace through code.  I use WingIDE (love it), but > the execution > of the C code is of course hidden, which helped stymie on this > problem.  Is there another to

Re: Unpickle error -- "object has no attribute ...."

2011-08-29 Thread luvspython
On Aug 29, 5:02 am, Peter Otten <__pete...@web.de> wrote: > luvspython wrote: > > I have an application that needs to keep a history of the values of > > several attributes of each of many instances of many classes.  The > > history-keeping logic is in a helper class, HistoryKeeper, that's > > inhe

Re: Unpickle error -- "object has no attribute ...."

2011-08-29 Thread Peter Otten
luvspython wrote: > I have an application that needs to keep a history of the values of > several attributes of each of many instances of many classes. The > history-keeping logic is in a helper class, HistoryKeeper, that's > inherited by classes like Vehicle in the example below. > > Pickling a

Unpickle error -- "object has no attribute ...."

2011-08-28 Thread luvspython
I have an application that needs to keep a history of the values of several attributes of each of many instances of many classes. The history-keeping logic is in a helper class, HistoryKeeper, that's inherited by classes like Vehicle in the example below. Pickling an instance of Vehicle works, bu