class speciallist(list):
def __new__(self):
return self
def custommethod(self,param):
#do stuff
return value
listesp = speciallist()
listesp.custommethod(param)
I get "unbound method custommethod() must be called with speciallist instance as first argument"
I thought it was going to call the method from the class, why does it do this?