Skip to content

Instantly share code, notes, and snippets.

@bmihelac
Created June 7, 2011 05:33
Show Gist options
  • Save bmihelac/1011734 to your computer and use it in GitHub Desktop.
Save bmihelac/1011734 to your computer and use it in GitHub Desktop.
Python 'mro' test
class A(object):
def meth(self):
print "A"
super(A, self).meth()
class B(object):
def meth(self):
print "B"
class C(A, B):
def meth(self):
print type(self).mro()
super(C, self).meth()
print "C"
if __name__ == '__main__':
C().meth()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment