diff options
author | Georg Brandl <georg@python.org> | 2008-11-22 08:35:59 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-11-22 08:35:59 (GMT) |
commit | b66708741abbd7e921a1e328a7f6c4b555b54e04 (patch) | |
tree | 0d66432df53f3d000832a7f54167e4045b991f27 | |
parent | 5076740d4ff986bdaaf8df2e69671cadd710f0dd (diff) | |
download | cpython-b66708741abbd7e921a1e328a7f6c4b555b54e04.zip cpython-b66708741abbd7e921a1e328a7f6c4b555b54e04.tar.gz cpython-b66708741abbd7e921a1e328a7f6c4b555b54e04.tar.bz2 |
#4372: add bullet point for __cmp__ removal.
-rw-r--r-- | Doc/whatsnew/3.0.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst index acf3661..5940cd6 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. |