From: Zac Medico Date: Tue, 19 Mar 2013 06:22:32 +0000 (-0700) Subject: cmp_sort_key: reference functools.cmp_to_key() X-Git-Tag: v2.2.0_alpha167~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3856debfede50480eb1308365d157285dfa178d8;p=portage.git cmp_sort_key: reference functools.cmp_to_key() --- diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 32875695b..1736ad648 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -848,6 +848,9 @@ class cmp_sort_key(object): list.sort(), making it easier to port code for python-3.0 compatibility. It works by generating key objects which use the given cmp function to implement their __lt__ method. + + Beginning with Python 2.7 and 3.2, equivalent functionality is provided + by functools.cmp_to_key(). """ __slots__ = ("_cmp_func",)