Last active
July 8, 2021 04:11
-
-
Save deadPix3l/05e960db9a67557eb67e65c16daa36c4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def logging(f): | |
def wrapper(*args, **kwargs): | |
print("starting!") | |
retval = f(*args, **kwargs) | |
print("Done!") | |
return retval | |
return wrapper | |
say_hello = logging(say_hello) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment