summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.0.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/whatsnew/3.0.rst')
-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``