-
-
Save bennofs/6252b45bd026d7e95dbacf7615159ed5 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 Base(object): | |
def __init__(self): | |
print("base!") | |
class Foo(Base): | |
def __init__(self): | |
super(Foo, self).__init__() |
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
import foo | |
class Monkey(foo.Foo): | |
pass | |
foo.Foo = Monkey | |
print(foo.Foo()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment