Last active
November 12, 2016 04:18
-
-
Save bolerap/e87181a5901bf0621a6d7f39cb941bf8 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
# define a decorator simplest as possible | |
def identify(f): | |
return f | |
# Use decorator | |
def foo(): | |
return 'fuzz' | |
# the same as | |
foo = identify(foo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment