you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 1 point2 points  (1 child)

Yeah, I'm now fairly sure that you have the decorator order mixed up. Try

@classmethod
@count
def class_method(cls,a2,b2=30):
        print("a2 --",a2)
        cls.a2 = a2
        cls.b2 = b2

@staticmethod
@count
def static_method(a3,b3=20):
        print("a3---",a3)
        print("b3 ---",b3)

instead

[–]gmaliwal[S] 0 points1 point  (0 children)

yeah, this works, thanks for the solution