Skip to content

Instantly share code, notes, and snippets.

@MichalKorzycki
Created May 4, 2013 19:50
Show Gist options
  • Save MichalKorzycki/5518526 to your computer and use it in GitHub Desktop.
Save MichalKorzycki/5518526 to your computer and use it in GitHub Desktop.
class A(object):
def f(self):
print "A"
class B(object):
def f(self):
print "B"
class AB(A,B):
pass
class BA(B,A):
pass
BA().f()
AB().f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment