Kaydet (Commit) 7c98a6d4 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Add explanation for super(type1, type2).

üst fd04870a
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment