From b66708741abbd7e921a1e328a7f6c4b555b54e04 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 22 Nov 2008 08:35:59 +0000 Subject: [PATCH] #4372: add bullet point for __cmp__ removal. --- Doc/whatsnew/3.0.rst | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.40.0