Author: kurt.kaiser
Date: Wed Feb 13 17:09:27 2008
New Revision: 60761

Modified:
   python/branches/py3k/Doc/whatsnew/3.0.rst
Log:
list.sort() and builtin.sorted() no longer accept 'cmp' argument.


Modified: python/branches/py3k/Doc/whatsnew/3.0.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.0.rst   (original)
+++ python/branches/py3k/Doc/whatsnew/3.0.rst   Wed Feb 13 17:09:27 2008
@@ -141,6 +141,10 @@
   :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``
_______________________________________________
Python-3000-checkins mailing list
Python-3000-checkins@python.org
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to