Skip to content

Instantly share code, notes, and snippets.

@richo
Created October 8, 2012 22:52
Show Gist options
  • Save richo/3855466 to your computer and use it in GitHub Desktop.
Save richo/3855466 to your computer and use it in GitHub Desktop.
def decorator(fn):
def _(arg1, arg2):
fn(arg2, arg1)
@decorator
def puts(*args):
print " ".join(args)
puts("world!", "Hello)") # > "Hello world!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment