Bottom Page

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".
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Quote
#2
Method Resolution Order
Skaperen likes this post
Quote
#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'.
Quote
#4


My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Quote
#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.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)