?
=?ISO-8859-1?Q?Ricardo_Ar=E1oz?=
Hi, I know I'm being dumb but, why does it not work?
.... def __init__(self):
.... self.calls = 0
.... def __getattr__(self, name):
.... self.calls += 1
.... return list.__getattribute__(self, name)
TIA
.... def __init__(self):
.... self.calls = 0
.... def __getattr__(self, name):
.... self.calls += 1
.... return list.__getattribute__(self, name)
176a = MyList()
a []
a.append(1)
a [1]
a.calls 88
a.append(3)
a.calls 88
a.sort()
a [1, 3]
a.calls
TIA