Restore Py2.x version of sample call to super().

This commit is contained in:
Raymond Hettinger 2009-02-25 00:39:47 +00:00
parent 9766033b7c
commit eb7cbb94c5
2 changed files with 7 additions and 6 deletions

View file

@ -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)``.