summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-07 18:49:54 (GMT)
committerGeorg Brandl <georg@python.org>2009-02-07 18:49:54 (GMT)
commit95f8ef282578cd6aa87458425a777fc1cbdbf997 (patch)
treef423f27bf2e176aeba94030e7061d8c51eb856d4 /Doc
parentf8741eacf56574e6b120289156cbdcfb9f7be9b2 (diff)
downloadcpython-95f8ef282578cd6aa87458425a777fc1cbdbf997.zip
cpython-95f8ef282578cd6aa87458425a777fc1cbdbf997.tar.gz
cpython-95f8ef282578cd6aa87458425a777fc1cbdbf997.tar.bz2
make "super only for new-style classes" a note.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/functions.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 0977c91..bd71309 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