__mro__

Dunder AttributePython 2.0+Advanced

Method Resolution Order; the order in which base classes are searched

Quick Info

Documentation
Official Docs
Python Version
2.0+

Learn by Difficulty

Quick Example

python
# __mro__
print("Demonstrating __mro__")
print(type(object).__dict__.keys())

__mro__ is a special attribute that method resolution order; the order in which base classes are searched.

Try in Playground

Tags

oopintrospectioncore