Python Forum

Full Version: mro
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what do the initials "mro" mean in the class attribute .__mro__? i'll make a guess and say that "m" means "multi---something".
Method Resolution Order
The very best description of how to actually use mro, especially when it comes to super-classing is in the
book 'Fluent Python' (O'Reilly) By Luciano Ramalho. Espically chapter 12 'Inheritance: For Good or for Worse'.
i have done multiple inheritance in Pike and emulated it in C. i'm studying making use of it in Python, now. so i ran across MRO where they did not describe it.

that text "super!" at first looked like "superl" as in "su perl" ... now i have to clean up my partially digested lunch.