def my_decorator(func): def wrapper(): print("I'm before the method call") func() print("I'm after the method call") return wrapper
def my_decorator(func): def wrapper(): print("I'm before the method call") func() print("I'm after the method call") return wrapper