Created
March 9, 2017 08:56
-
-
Save gchiam/4227941ba24ec3ede560bbbc72995463 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Root(object): | |
def setup(self): | |
print 'Root.setup' | |
class Base(Root): | |
def setup(self): | |
print 'Base.setup' | |
super(Base, self).setup() | |
class Mixin(object): | |
def setup(self): | |
print 'Mixin.setup' | |
super(Mixin, self).setup() | |
class Foo(Mixin, Base): | |
pass | |
foo = Foo() | |
foo.setup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment