Created
May 3, 2014 23:18
-
-
Save Bengt/71d085144457b275e7c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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() |
This file contains hidden or 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
| ('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