Skip to content

Instantly share code, notes, and snippets.

@Fluxx
Created November 14, 2013 00:23
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 Fluxx/7459079 to your computer and use it in GitHub Desktop.
Save Fluxx/7459079 to your computer and use it in GitHub Desktop.
class Foo(object):
def bar(func):
def inner(self):
return func(self)
return inner
@bar
def baz(self):
print 'baz'
Foo().baz()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment