Answer the question
In order to leave comments, you need to log in
How are classes inherited and how does mro work?
Not very clear. If there is this
class A:
def foo(self):
print("A")
class B(A):
pass
class C(A):
def foo(self):
print("C")
class D:
def foo(self):
print("D")
class E(B, C, D):
pass
E().foo()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question