Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mro
#1
what do the initials "mro" mean in the class attribute .__mro__? i'll make a guess and say that "m" means "multi---something".
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
Method Resolution Order
Reply
#3
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'.
Reply
#4
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#5
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020