mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue 5229: Documentation for super() neglects to say what super() actually does
This commit is contained in:
parent
f1c95fe004
commit
fd04870a3d
1 changed files with 5 additions and 1 deletions
|
@ -1166,7 +1166,11 @@ available. They are listed here in alphabetical order.
|
|||
|
||||
.. function:: super(type[, object-or-type])
|
||||
|
||||
Return a "super" object that acts like the superclass of *type*.
|
||||
Return a proxy object that delegates method calls to a parent class of
|
||||
*type*. This is useful for accessing inherited methods that have been
|
||||
overriden in a child class. The search order for parent classes is
|
||||
determined by the ``__mro__`` attribute of the *type* and can change
|
||||
whenever the parent classes are updated.
|
||||
|
||||
If the second argument is omitted the super
|
||||
object returned is unbound. If the second argument is an object,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue