]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- note that super() only applies to new-style classes;
authorFred Drake <fdrake@acm.org>
Tue, 1 Jul 2003 16:31:26 +0000 (16:31 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 1 Jul 2003 16:31:26 +0000 (16:31 +0000)
  closes SF bug #764003
- fix markup for consistency

Doc/lib/libfuncs.tex

index 0b03d47f80932a36196ae9f19c002031dc8b0461..5027a04491c0db341ec259d601dbaf6dc389d8b6 100644 (file)
@@ -935,8 +935,10 @@ class C:
 \begin{funcdesc}{super}{type\optional{object-or-type}}
   Return the superclass of \var{type}.  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.
+  object, \code{isinstance(\var{obj}, \var{type})} must be true.  If
+  the second argument is a type, \code{issubclass(\var{type2},
+  \var{type})} must be true.
+  \function{super()} only works for new-style classes.
 
   A typical use for calling a cooperative superclass method is:
 \begin{verbatim}