Created
May 17, 2017 01:41
-
-
Save rsp2k/e0dd0ee8a41cf1e600cf9cfcb242a4ea 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 my_decorator(some_function): | |
def wrapper(): | |
print("Something is happening before some_function() is called.") | |
some_function() | |
print("Something is happening after some_function() is called.") | |
return wrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment