How can you see a class's MRO in Python?
-
A
ClassName.mro_list
-
B
ClassName.__bases_all__
-
C
ClassName.__mro__
Correct answer
-
D
dir(ClassName)
Correct answer
C. ClassName.__mro__
Explanation
The __mro__ attribute (or mro() method) shows the resolution order.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ