summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-07-01 16:31:26 (GMT)
committerFred Drake <fdrake@acm.org>2003-07-01 16:31:26 (GMT)
commit3ede7848a9e4b01b26349c2bfeee088188f1b751 (patch)
treea0bd96e056767eb323cb7f3569f272e4461ceeae
parent901a41e7575e6fb4625d0e419fffc2deb95352cb (diff)
downloadcpython-3ede7848a9e4b01b26349c2bfeee088188f1b751.zip
cpython-3ede7848a9e4b01b26349c2bfeee088188f1b751.tar.gz
cpython-3ede7848a9e4b01b26349c2bfeee088188f1b751.tar.bz2
- note that super() only applies to new-style classes;
closes SF bug #764003 - fix markup for consistency
-rw-r--r--Doc/lib/libfuncs.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 0b03d47..5027a04 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -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}