summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-12-06 08:14:46 (GMT)
committerGeorg Brandl <georg@python.org>2008-12-06 08:14:46 (GMT)
commit40c509d0b69ad9839601c7f3e37d9766070e5a9e (patch)
tree190132af25eaa7cb048e0f6575834ab1d9ca07fe /Doc/whatsnew
parentd2aa7e66270708a580ad166fa02f7c0f05249084 (diff)
downloadcpython-40c509d0b69ad9839601c7f3e37d9766070e5a9e.zip
cpython-40c509d0b69ad9839601c7f3e37d9766070e5a9e.tar.gz
cpython-40c509d0b69ad9839601c7f3e37d9766070e5a9e.tar.bz2
cmp() is not really gone.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.0.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst
index 68e8c5a..f2d9362 100644
--- a/Doc/whatsnew/3.0.rst
+++ b/Doc/whatsnew/3.0.rst
@@ -189,12 +189,11 @@ Python 3.0 has simplified the rules for ordering comparisons:
argument instead. N.B. the *key* and *reverse* arguments are now
"keyword-only".
-* The :func:`cmp` function is gone, and 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. (If you really need the :func:`cmp` functionality, you
- could use the expression ``(a > b) - (a < b)`` as the equivalent for
- ``cmp(a, b)``.)
+* The :func:`cmp` function should be treated as gone, and 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.
+ (If you really need the :func:`cmp` functionality, you could use the
+ expression ``(a > b) - (a < b)`` as the equivalent for ``cmp(a, b)``.)
Integers
--------