This commit is contained in:
Raymond Hettinger 2010-12-22 09:11:54 +00:00
parent 14affb84ca
commit f35a34cbab

View file

@ -677,6 +677,8 @@ functools
(Contributed by Raymond Hettinger.)
.. XXX clarify what the example does
* To aid in porting programs from Python 2, the :func:`~functools.cmp_to_key`
function converts an old-style comparison function to
modern :term:`key function`: