Skip to content

Instantly share code, notes, and snippets.

@Bengt
Created May 3, 2014 23:18
Show Gist options
  • Save Bengt/71d085144457b275e7c8 to your computer and use it in GitHub Desktop.
Save Bengt/71d085144457b275e7c8 to your computer and use it in GitHub Desktop.
class Mother(object):
def __init__(self):
super(Mother, self).__init__()
print("Mother:", self)
class Father(object):
def __init__(self):
super(Father, self).__init__()
print("Father:", self)
class Child(Mother, Father):
def __init__(self):
super(Child, self).__init__()
print("Child:", self)
Child()
('Father:', <__main__.Child object at 0x2479e10>)
('Mother:', <__main__.Child object at 0x2479e10>)
('Child:', <__main__.Child object at 0x2479e10>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment