Skip to content

Instantly share code, notes, and snippets.

@ftnext
Last active March 3, 2024 13:56
Show Gist options
  • Save ftnext/fdecd380c8d7994f553c3fe4869fcf05 to your computer and use it in GitHub Desktop.
Save ftnext/fdecd380c8d7994f553c3fe4869fcf05 to your computer and use it in GitHub Desktop.
# 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