Created
December 4, 2018 23:05
-
-
Save bjonnh/6040233a6427cdfc1f3fe2ef78240adc to your computer and use it in GitHub Desktop.
Finding the class that overloads a function
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 A: | |
def foo(): | |
print("From A") | |
class B(A): | |
def foo(): | |
print("From B") | |
class C(B): | |
pass | |
print(C.foo.__qualname__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment