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
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
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