Raymond Hettinger added the comment:

Thanks for submitting a patch.  

I'm sorry, but I don't think this is the right approach.  I will likely keep 
the current functions as they are now.  Under no circumstances do I want to add 
any overhead to the existing functions (they serve performance critical roles 
in high performance async tools such as Tornado).

Instead, I'm considering alternatives such as a second set of functions that 
have a key-function.

The existing cmp_lt function was a hack that needs to go away and never return. 
 It was put in to accommodate some bad code in Twisted that against 
recommendations relied on a specific rich comparison operator other that 
__lt__.  Because of that, PEP 8 amended to say that we recommend that all six 
rich comparison operators be implemented for comparison (and the 
functools.total_ordering class decorator was added in furtherance of that end).

----------
assignee:  -> rhettinger
nosy: +rhettinger
priority: normal -> low
type:  -> enhancement
versions: +Python 3.5 -Python 2.7, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20905>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to