Add explanation for super(type1, type2).

This commit is contained in:
Raymond Hettinger 2009-02-16 23:00:25 +00:00
parent fd04870a3d
commit 7c98a6d4dc
1 changed files with 1 additions and 1 deletions

View File

@ -1175,7 +1175,7 @@ available. They are listed here in alphabetical order.
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.
``issubclass(type2, type)`` must be true (this is useful for classmethods).
.. note::
:func:`super` only works for :term:`new-style class`\es.