Skip to content

Instantly share code, notes, and snippets.

@bjonnh
Created December 4, 2018 23:05
Show Gist options
  • Save bjonnh/6040233a6427cdfc1f3fe2ef78240adc to your computer and use it in GitHub Desktop.
Save bjonnh/6040233a6427cdfc1f3fe2ef78240adc to your computer and use it in GitHub Desktop.
Finding the class that overloads a function
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