Skip to content

Instantly share code, notes, and snippets.

@deadPix3l
Last active July 8, 2021 04:11
Show Gist options
  • Save deadPix3l/05e960db9a67557eb67e65c16daa36c4 to your computer and use it in GitHub Desktop.
Save deadPix3l/05e960db9a67557eb67e65c16daa36c4 to your computer and use it in GitHub Desktop.
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