super() actually returns a super object.

This commit is contained in:
Georg Brandl 2008-08-30 13:17:39 +00:00
parent 6140651d93
commit f5a3fb730f
1 changed files with 2 additions and 1 deletions

View File

@ -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