Skip to content

Instantly share code, notes, and snippets.

@nmichaels
Created February 3, 2010 23:58
Show Gist options
  • Save nmichaels/294203 to your computer and use it in GitHub Desktop.
Save nmichaels/294203 to your computer and use it in GitHub Desktop.
def decorate(p1, p2):
def wrapper(fcn):
fcn.p1 = p1
fcn.p2 = p2
return wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment