mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Restore Py2.x version of sample call to super().
This commit is contained in:
parent
9766033b7c
commit
eb7cbb94c5
2 changed files with 7 additions and 6 deletions
|
|
@ -1229,7 +1229,7 @@ available. They are listed here in alphabetical order.
|
|||
|
||||
class C(B):
|
||||
def method(self, arg):
|
||||
super().method(arg) # This does the same thing as: super(C, self).method(arg)
|
||||
super(C, self).method(arg)
|
||||
|
||||
Note that :func:`super` is implemented as part of the binding process for
|
||||
explicit dotted attribute lookups such as ``super().__getitem__(name)``.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue