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 d366694 commit 3b5e924Copy full SHA for 3b5e924
Doc/library/functions.rst
@@ -1532,6 +1532,10 @@ are always available. They are listed here in alphabetical order.
1532
super().method(arg) # This does the same thing as:
1533
# super(C, self).method(arg)
1534
1535
+ In addition to method lookups, :func:`super` also works for attribute
1536
+ lookups. One possible use case for this is calling :term:`descriptor`\s
1537
+ in a parent or sibling class.
1538
+
1539
Note that :func:`super` is implemented as part of the binding process for
1540
explicit dotted attribute lookups such as ``super().__getitem__(name)``.
1541
It does so by implementing its own :meth:`__getattribute__` method for searching
0 commit comments