Last active
March 3, 2024 13:56
-
-
Save ftnext/fdecd380c8d7994f553c3fe4869fcf05 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
# Code with bug. ref: https://stackoverflow.com/q/32831150 | |
class A: | |
def __init__(self, v, v2): | |
self.v = v | |
self.v2 = v2 | |
class B(A): | |
def __init__(self, v, v2): | |
print(self.__class__) | |
super(self.__class__, self).__init__(v, v2) | |
class C(B): | |
def hello(self): | |
print(self.v, self.v2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment