Skip to content

Instantly share code, notes, and snippets.

@jacobh
Created May 27, 2015 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobh/6a40ff63596eea75e8db to your computer and use it in GitHub Desktop.
Save jacobh/6a40ff63596eea75e8db to your computer and use it in GitHub Desktop.
class Base(object):
def test(self, text):
return 'base, ' + text
class One(object):
def test(self, text):
return 'one, ' + super(One, self).test(text)
class Two(object):
def test(self, text):
return 'two, ' + super(Two, self).test(text)
class Three(object):
def test(self, text):
return 'three, ' + super(Three, self).test(text)
class Test(One, Two, Three, Base):
pass
Test().test('test') == 'one, two, three, base, test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment