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