From: Georg Brandl Date: Sat, 7 Feb 2009 18:49:54 +0000 (+0000) Subject: make "super only for new-style classes" a note. X-Git-Tag: v2.7a1~2084 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95f8ef282578cd6aa87458425a777fc1cbdbf997;p=python make "super only for new-style classes" a note. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 0977c91e52..bd7130938c 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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