This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients BreamoreBoy, Prashant.Sharma, gdr@garethrees.org, rhettinger
Date 2014-03-14.00:02:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394755376.26.0.251868999454.issue20905@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2014-03-14 00:02:56rhettingersetrecipients: + rhettinger, BreamoreBoy, gdr@garethrees.org, Prashant.Sharma
2014-03-14 00:02:56rhettingersetmessageid: <1394755376.26.0.251868999454.issue20905@psf.upfronthosting.co.za>
2014-03-14 00:02:56rhettingerlinkissue20905 messages
2014-03-14 00:02:55rhettingercreate