def __add__(self,other): MyListSub.calls = MyListSub.calls + 1 self.adds = self.adds + 1 return MyList.__add__(self, other)
def __init__(self, start): self.adds = 0 MyList.__init__(self, start)