Last active
February 12, 2018 19:55
-
-
Save pavelpy/a6f1d78084786bf63054b9ca2488c76f 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 Class1(object): | |
def __init__(self): | |
print('Class 1 init') | |
class Class2(Class1): | |
def __init__(self): | |
Class1.__init__(self) | |
super().__init__() # python3 only | |
super(Class2, self).__init() | |
class2 = Class2() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment