Commit f5a3fb73 authored by Georg Brandl's avatar Georg Brandl

super() actually returns a super object.

parent 6140651d
......@@ -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
......
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