Guido rethinking removal of cmp from sort method

Lie Ryan lie.1296 at gmail.com
Mon Apr 4 09:35:14 EDT 2011


On 04/04/11 19:34, Antoon Pardon wrote:
> On Fri, Apr 01, 2011 at 10:21:33PM -0400, Terry Reedy wrote:
>>>> rewriting cmp_to_key in C is underway
>>>> http://bugs.python.org/issue11707
>>> Nice to know! Any chance this wil get into 2.7.x?

Python 2.7 still have list.sort(cmp=...)/sorted(cmp=...), so cmp_to_key
is not much use there. Just pass your comparison function to the cmp
argument.


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /