list modification subclassing

2007-05-20 Thread manstey
Hi, I have a simple subclass of a list: class CaListOfObj(list): subclass of list def __init__(self, *args, **kwargs): list.__init__(self, *args, **kwargs) a= CaListOfObj([1,2,3]) How do I write a method that does something EVERY time a is modified? Thanks --

Re: list modification subclassing

2007-05-20 Thread AchatesAVC
On May 20, 8:55 pm, manstey [EMAIL PROTECTED] wrote: Hi, I have a simple subclass of a list: class CaListOfObj(list): subclass of list def __init__(self, *args, **kwargs): list.__init__(self, *args, **kwargs) a= CaListOfObj([1,2,3]) How do I write a method that does