Skip to content

Instantly share code, notes, and snippets.

@raphaelfruneaux
Created November 27, 2019 13:40
Show Gist options
  • Save raphaelfruneaux/9b722978c67fc7820361e73983bc3edd to your computer and use it in GitHub Desktop.
Save raphaelfruneaux/9b722978c67fc7820361e73983bc3edd to your computer and use it in GitHub Desktop.
def greeting(f):
def wrapper(*args, **kwargs):
print("Hi there! Welcome!")
f(*args, **kwargs)
print("Byee!")
return wrapper
@greeting
def foo():
print("Foo")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment