Skip to content

Commit 285511f

Browse files
author
georg.brandl
committed
make "super only for new-style classes" a note.
git-svn-id: http://svn.python.org/projects/python/trunk@69414 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 717ddd2 commit 285511f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/library/functions.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,10 @@ available. They are listed here in alphabetical order.
11711171
If the second argument is omitted the super
11721172
object returned is unbound. If the second argument is an object,
11731173
``isinstance(obj, type)`` must be true. If the second argument is a type,
1174-
``issubclass(type2, type)`` must be true. :func:`super` only works for
1175-
:term:`new-style class`\es.
1174+
``issubclass(type2, type)`` must be true.
1175+
1176+
.. note::
1177+
:func:`super` only works for :term:`new-style class`\es.
11761178

11771179
There are two typical use cases for "super". In a class hierarchy with
11781180
single inheritance, "super" can be used to refer to parent classes without

0 commit comments

Comments
 (0)