Python - Multiple Inheritance and Method Resolution
Which of the following is the correct way to check the MRO of a class
MyClass in Python?MyClass in Python?__mro__ attribute and mro() method to check MRO.MyClass.__mro__ is a tuple showing MRO; MyClass.mro() is a method returning a list. print(MyClass.__mro__) uses __mro__ correctly with print.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions