[Python-checkins] r69414 - python/trunk/Doc/library/functions.rst

georg.brandl python-checkins at python.org
Sat Feb 7 19:49:55 CET 2009


Author: georg.brandl
Date: Sat Feb  7 19:49:54 2009
New Revision: 69414

Log:
make "super only for new-style classes" a note.

Modified:
   python/trunk/Doc/library/functions.rst

Modified: python/trunk/Doc/library/functions.rst
==============================================================================
--- python/trunk/Doc/library/functions.rst	(original)
+++ python/trunk/Doc/library/functions.rst	Sat Feb  7 19:49:54 2009
@@ -1171,8 +1171,10 @@
    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


More information about the Python-checkins mailing list