Skip to content

Instantly share code, notes, and snippets.

@gchiam
Created March 9, 2017 08:56
Show Gist options
  • Save gchiam/4227941ba24ec3ede560bbbc72995463 to your computer and use it in GitHub Desktop.
Save gchiam/4227941ba24ec3ede560bbbc72995463 to your computer and use it in GitHub Desktop.
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