'super' object has no attribute '__setitem__'

2011-08-18 Thread luvspython
I'm using Python 2.7 and the code below fails at the 'super' statement in the __setitem__ function in the HistoryKeeper class. The error is: 'super' object has no attribute '_setitem__' Can anyone please tell me why and how to fix it? (I've googled endlessly and I don't see the problem.) [T

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

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 c