M
manstey
Hi,
I have a simple class that subclasses a list:
class CaListOfObj(list):
""" subclass of list """
def __init__(self, *args, **kwargs):
list.__init__(self, *args, **kwargs)
a= CaListOfObj([1,2,3])
Is it possible to have a method in the class that is called EVERY time
a is modified?
Thanks
I have a simple class that subclasses a list:
class CaListOfObj(list):
""" subclass of list """
def __init__(self, *args, **kwargs):
list.__init__(self, *args, **kwargs)
a= CaListOfObj([1,2,3])
Is it possible to have a method in the class that is called EVERY time
a is modified?
Thanks