We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b7191e commit 6a05bc6Copy full SHA for 6a05bc6
README.md
@@ -818,6 +818,19 @@ class Employee(Person):
818
>>> Employee.mro()
819
[<class 'Employee'>, <class 'Person'>, <class 'object'>]
820
```
821
+* **MRO or Method Resolution Order determines the order in which parent classes are traversed when searching for a method.**
822
+
823
+### Multiple Inheritance
824
+```python
825
+class A: pass
826
+class B: pass
827
+class C(A, B): pass
828
+```
829
830
831
+>>> C.mro()
832
+[<class 'C'>, <class 'A'>, <class 'B'>, <class 'object'>]
833
834
835
### Comparable
836
* **If eq() method is not overridden, it returns `'id(self) == id(other)'`, which is the same as `'self is other'`.**
0 commit comments