Last active
September 16, 2015 18:25
-
-
Save tbarbugli/b83b6a9a291156f870fe 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
def deco(fn): | |
def wrap(): | |
pass | |
return fn() | |
return wrap | |
@deco | |
def my_fn(): | |
''' | |
does something | |
''' | |
pass | |
print my_fn.__name__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment