[Python-checkins] CVS: python/dist/src/Doc/ref ref3.tex,1.57,1.58
Fred L. Drake
python-dev@python.org
Thu, 04 Jan 2001 07:11:50 -0800
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv17971/ref
Modified Files:
ref3.tex
Log Message:
__rcmp__() description: Changed to indicate that this is no longer
supported as of Python 2.1. We still need to
have an entry for this since it is reasonable
for users to want to understand existing code.
This closes SF bug #122715.
Index: ref3.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -r1.57 -r1.58
*** ref3.tex 2001/01/04 01:25:50 1.57
--- ref3.tex 2001/01/04 15:11:48 1.58
***************
*** 956,967 ****
\begin{methoddesc}[object]{__rcmp__}{self, other}
! Called by all comparison operations. Should return a negative integer if
! \code{self < other}, zero if \code{self == other}, a positive integer if
! \code{self > other}. If no \method{__cmp__()} operation is defined, class
! instances are compared by object identity (``address'').
! (Note: the restriction that exceptions are not propagated by
! \method{__cmp__()} has been removed in Python 1.5.)
! \bifuncindex{cmp}
! \index{comparisons}
\end{methoddesc}
--- 956,960 ----
\begin{methoddesc}[object]{__rcmp__}{self, other}
! \versionchanged[No longer supported]{2.1}
\end{methoddesc}