Python Forum
mro - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: mro (/thread-9172.html)



mro - Skaperen - Mar-25-2018

what do the initials "mro" mean in the class attribute .__mro__? i'll make a guess and say that "m" means "multi---something".


RE: mro - stranac - Mar-25-2018

Method Resolution Order


RE: mro - Larz60+ - Mar-25-2018

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'.


RE: mro - DeaD_EyE - Mar-25-2018




RE: mro - Skaperen - Mar-26-2018

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.