Skip to content

Instantly share code, notes, and snippets.

@tbarbugli
Last active September 16, 2015 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbarbugli/b83b6a9a291156f870fe to your computer and use it in GitHub Desktop.
Save tbarbugli/b83b6a9a291156f870fe to your computer and use it in GitHub Desktop.
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