Created
May 27, 2015 01:38
-
-
Save jacobh/6a40ff63596eea75e8db 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 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