MemotivaObject-oriented programming

What is the Method Resolution Order?

Object-oriented programming

Audio flashcard · 0:16

Nortren·

What is the Method Resolution Order?

0:16

Method Resolution Order, or MRO, is the order in which Python looks up methods in a class hierarchy. With multiple inheritance, Python uses the C3 linearization algorithm to compute a consistent linear order. You can inspect it with the dunder mro attribute or the mro method on a class.
docs.python.org