File tree 1 file changed +10
-3
lines changed 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1587,10 +1587,17 @@ are always available. They are listed here in alphabetical order.
1587
1587
1588
1588
Return a proxy object that delegates method calls to a parent or sibling
1589
1589
class of *type *. This is useful for accessing inherited methods that have
1590
- been overridden in a class. The search order is same as that used by
1591
- :func: `getattr ` except that the *type * itself is skipped.
1590
+ been overridden in a class.
1592
1591
1593
- The :attr: `~class.__mro__ ` attribute of the *type * lists the method
1592
+ The *object-or-type * determines the :term: `method resolution order `
1593
+ to be searched. The search starts from the class right after the
1594
+ *type *.
1595
+
1596
+ For example, if :attr: `~class.__mro__ ` of *object-or-type * is
1597
+ ``D -> B -> C -> A -> object `` and the value of *type * is ``B ``,
1598
+ then :func: `super ` searches ``C -> A -> object ``.
1599
+
1600
+ The :attr: `~class.__mro__ ` attribute of the *object-or-type * lists the method
1594
1601
resolution search order used by both :func: `getattr ` and :func: `super `. The
1595
1602
attribute is dynamic and can change whenever the inheritance hierarchy is
1596
1603
updated.
You can’t perform that action at this time.
0 commit comments