Commit a1401012 authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

list.sort() and builtin.sorted() no longer accept 'cmp' argument.

parent 0bd4e118
......@@ -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``
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment