]> granicus.if.org Git - python/commitdiff
__rcmp__() description: Changed to indicate that this is no longer
authorFred Drake <fdrake@acm.org>
Thu, 4 Jan 2001 15:11:48 +0000 (15:11 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 4 Jan 2001 15:11:48 +0000 (15:11 +0000)
                         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.

Doc/ref/ref3.tex

index cd75d0c956a16b082b87b11fdf9e355dcf8e423b..a012188894a368024aaec22e96e87fef52592bfc 100644 (file)
@@ -955,14 +955,7 @@ instances are compared by object identity (``address'').
 \end{methoddesc}
 
 \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}
+  \versionchanged[No longer supported]{2.1}
 \end{methoddesc}
 
 \begin{methoddesc}[object]{__hash__}{self}