Created
January 5, 2013 06:31
-
-
Save goodwillcoding/4460141 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
File Edit Options Buffers Tools Python Help | |
class Bar(object): | |
def meth1(self): | |
pass | |
class Foo(Bar): | |
def meth2(self, func=Bar.meth1): | |
print func | |
f = Foo() | |
f.meth2() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment