Skip to content

Instantly share code, notes, and snippets.

@blaix
Created April 30, 2015 21:01
Show Gist options
  • Save blaix/4b412df4aa3160167f90 to your computer and use it in GitHub Desktop.
Save blaix/4b412df4aa3160167f90 to your computer and use it in GitHub Desktop.
def def def
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