From: Georg Brandl <georg@python.org>
Date: Sat, 22 Nov 2008 08:35:59 +0000 (+0000)
Subject: #4372: add bullet point for __cmp__ removal.
X-Git-Tag: v3.0~80
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b66708741abbd7e921a1e328a7f6c4b555b54e04;p=python

#4372: add bullet point for __cmp__ removal.
---

diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst
index acf3661c8b..5940cd64e2 100644
--- a/Doc/whatsnew/3.0.rst
+++ b/Doc/whatsnew/3.0.rst
@@ -160,6 +160,10 @@ changes to rarely used features.)
   argument providing a comparison function.  Use the *key* argument
   instead. N.B. the *key* and *reverse* arguments are now "keyword-only".
 
+* The :meth:`__cmp__` special method is no longer supported.  Use :meth:`__lt__`
+  for sorting, :meth:`__eq__` with :meth:`__hash__`, and other rich comparisons
+  as needed.
+
 * ``1/2`` returns a float.  Use ``1//2`` to get the truncating behavior.
 
 .. XXX move the next one to a later point, it's not a common stumbling block.