In the Below code Why can't I use self.f() to refer to secret method which is in A class
def check(f):
def checking(self):
print("Before secret method")
self.f()
print("After secret method")
return checking
class A:
@check
def secret(self):
print("Welcome to secret method")
a = A()
a.secret()