Created
November 14, 2013 00:23
-
-
Save Fluxx/7459079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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