mirror of https://github.com/python/cpython
super() actually returns a super object.
This commit is contained in:
parent
6140651d93
commit
f5a3fb730f
|
@ -1215,7 +1215,8 @@ available. They are listed here in alphabetical order.
|
|||
|
||||
.. function:: super(type[, object-or-type])
|
||||
|
||||
Return the superclass of *type*. If the second argument is omitted the super
|
||||
Return a "super" object that acts like the superclass of *type*.
|
||||
If the second argument is omitted the super
|
||||
object returned is unbound. If the second argument is an object,
|
||||
``isinstance(obj, type)`` must be true. If the second argument is a type,
|
||||
``issubclass(type2, type)`` must be true. :func:`super` only works for
|
||||
|
|
Loading…
Reference in New Issue