]> granicus.if.org Git - python/commitdiff
make "super only for new-style classes" a note.
authorGeorg Brandl <georg@python.org>
Sat, 7 Feb 2009 18:49:54 +0000 (18:49 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 7 Feb 2009 18:49:54 +0000 (18:49 +0000)
Doc/library/functions.rst

index 0977c91e52ed1704274d64cb476b43ff415d6ab9..bd7130938c4b359614fd99039c1448231975250a 100644 (file)
@@ -1171,8 +1171,10 @@ 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. :func:`super` only works for
-   :term:`new-style class`\es.
+   ``issubclass(type2, type)`` must be true.
+
+   .. note::
+      :func:`super` only works for :term:`new-style class`\es.
 
    There are two typical use cases for "super".  In a class hierarchy with
    single inheritance, "super" can be used to refer to parent classes without