summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-02-16 23:00:25 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-02-16 23:00:25 (GMT)
commit7c98a6d4dceecc5dd8b117212e07630d625e6565 (patch)
tree833033e8bfb594d6fc048229824f0fbb96712a1d
parentfd04870a3dc9c8d2695957e2ee6079411dd6fd90 (diff)
downloadcpython-7c98a6d4dceecc5dd8b117212e07630d625e6565.zip
cpython-7c98a6d4dceecc5dd8b117212e07630d625e6565.tar.gz
cpython-7c98a6d4dceecc5dd8b117212e07630d625e6565.tar.bz2
Add explanation for super(type1, type2).
-rw-r--r--Doc/library/functions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 7f5fa3a..fbb3f87 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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.