summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-08-30 13:17:39 (GMT)
committerGeorg Brandl <georg@python.org>2008-08-30 13:17:39 (GMT)
commitf5a3fb730f24f4ce49c5327d6d2c1823a912f8ea (patch)
tree7e19a02576b69ee4e993a4c671a9a4b270346633
parent6140651d9325fe25a132193e8ab19a8436adcf53 (diff)
downloadcpython-f5a3fb730f24f4ce49c5327d6d2c1823a912f8ea.zip
cpython-f5a3fb730f24f4ce49c5327d6d2c1823a912f8ea.tar.gz
cpython-f5a3fb730f24f4ce49c5327d6d2c1823a912f8ea.tar.bz2
super() actually returns a super object.
-rw-r--r--Doc/library/functions.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index d463924..75bca72 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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