Skip to content

Instantly share code, notes, and snippets.

@jself
Created February 27, 2013 16:56
Show Gist options
  • Save jself/5049502 to your computer and use it in GitHub Desktop.
Save jself/5049502 to your computer and use it in GitHub Desktop.
def wrapper(func):
def newfunc(*args, **kwargs):
print "In the new func, ignoring the old"
return newfunc
@wrapper
def hello():
print "In hello func"
hello()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment