Created
March 13, 2022 21:54
-
-
Save CEZERT/7e84a7aefbfc90f9dd9fb5afdf812afd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
def decorator(func): | |
@functools.wraps(func) | |
def wrapper_decorator(*args, **kwargs): | |
# Do something before | |
value = func(*args, **kwargs) | |
# Do something after | |
return value | |
return wrapper_decorator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment