'super' object has no attribute '__setitem__'

Benjamin Peterson benjamin at python.org
Thu Aug 18 22:05:34 EDT 2011


luvspython <srehtvandy <at> gmail.com> writes:
>     def __setitem__(self, item, value):
>         super(HistoryKeeper, self).__setitem__(item, value)

object has no __setitem__. Are you looking for __setattr__?

> 
> class Vehicle(HistoryKeeper):
>     def __init__(self, tag, make, model):
>         args = locals()

This is hideous by the way.







More information about the Python-list mailing list