Skip to main content

MRO

2020


C3 Linearization and Python MRO(Method Resolution Order)

·3 mins
Python supports multiple inheritance, its class can be derived from more than one base classes. If the specified attribute or methods was not found in current class, how to decide the search sequence from superclasses? In simple scenario, we know left-to right, bottom to up.