[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.139,1.140
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Tue, 01 Jul 2003 09:31:34 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv14160
Modified Files:
libfuncs.tex
Log Message:
- note that super() only applies to new-style classes;
closes SF bug #764003
- fix markup for consistency
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.139
retrieving revision 1.140
diff -C2 -d -r1.139 -r1.140
*** libfuncs.tex 26 Jun 2003 03:11:57 -0000 1.139
--- libfuncs.tex 1 Jul 2003 16:31:26 -0000 1.140
***************
*** 936,941 ****
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.
A typical use for calling a cooperative superclass method is:
--- 936,943 ----
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, \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: