Johnny

Results 1 issues of Johnny

I have a class like: class A(object): def __init__(self): self.timeout=4 @timeout_decorator(self.timeout) # it dosn't work def doanything(self): print("do") So, how to decorate doanything function in A class? Thanks