]> granicus.if.org Git - python/commitdiff
Add explanation for super(type1, type2).
authorRaymond Hettinger <python@rcn.com>
Mon, 16 Feb 2009 23:00:25 +0000 (23:00 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 16 Feb 2009 23:00:25 +0000 (23:00 +0000)
Doc/library/functions.rst

index 7f5fa3ab2f48ccbee895dbe4721d7fb333b9976f..fbb3f87367e9b6d7dd1c38886ca7fabd0ea23630 100644 (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.