Created
April 30, 2015 21:01
-
-
Save blaix/4b412df4aa3160167f90 to your computer and use it in GitHub Desktop.
def def def
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_argument): | |
def my_decorator_implementation(func): | |
@wraps(func) | |
def wrapped_func(self, *args, **kwargs): | |
# do stuff with func and some_argument | |
return wrapped_func | |
return my_decorator_implementation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment