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