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 e4be8c9 commit 7444a5aCopy full SHA for 7444a5a
Doc/library/functions.rst
@@ -1635,6 +1635,10 @@ are always available. They are listed here in alphabetical order.
1635
super().method(arg) # This does the same thing as:
1636
# super(C, self).method(arg)
1637
1638
+ In addition to method lookups, :func:`super` also works for attribute
1639
+ lookups. One possible use case for this is calling :term:`descriptor`\s
1640
+ in a parent or sibling class.
1641
+
1642
Note that :func:`super` is implemented as part of the binding process for
1643
explicit dotted attribute lookups such as ``super().__getitem__(name)``.
1644
It does so by implementing its own :meth:`__getattribute__` method for searching
0 commit comments