Python Decorators

PHOTO EMBED

Sat Nov 26 2022 10:28:52 GMT+0000 (Coordinated Universal Time)

Saved by @janduplessis883 #python #decorators

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