summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2008-02-13 16:09:27 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2008-02-13 16:09:27 (GMT)
commita1401012166fa66ccc2f8c107730c6f71b0c9f75 (patch)
tree20ab541fdb7328486b27c9609308b4db486ab33e /Doc
parent0bd4e11887bb9ffbde38f94468cc5b317f96b815 (diff)
downloadcpython-a1401012166fa66ccc2f8c107730c6f71b0c9f75.zip
cpython-a1401012166fa66ccc2f8c107730c6f71b0c9f75.tar.gz
cpython-a1401012166fa66ccc2f8c107730c6f71b0c9f75.tar.bz2
list.sort() and builtin.sorted() no longer accept 'cmp' argument.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.0.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst
index c9416db..ace0199 100644
--- a/Doc/whatsnew/3.0.rst
+++ b/Doc/whatsnew/3.0.rst
@@ -141,6 +141,10 @@ changes to rarely used features.)
:meth:`dict.values` return views instead of lists. For example, this no
longer works: ``k = d.keys(); k.sort()``. Use ``k = sorted(d)`` instead.
+* :meth:`builtin.sorted` and :meth:`list.sort` no longer accept the `cmp`
+ argument providing a comparision function. Use the `key` argument
+ instead. N.B. the `key` and `reverse` arguments are now "keyword-only".
+
* ``1/2`` returns a float. Use ``1//2`` to get the truncating behavior.
* The :func:`repr` of a long integer doesn't include the trailing ``L``