Last active
February 16, 2019 00:07
-
-
Save thisfred/f666bc4f3988f5d414a8544e8d8ea313 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
# given this decorator: | |
def my_decorator(function): | |
"""A decorator that does nothing.""" | |
return function | |
# this code: | |
@my_decorator | |
def my_function(): | |
pass | |
# is exactly the same as: | |
def my function(): | |
pass | |
my_function = my_decorator(my_function) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment