Message213496
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). |
|
Date |
User |
Action |
Args |
2014-03-14 00:02:56 | rhettinger | set | recipients:
+ rhettinger, BreamoreBoy, gdr@garethrees.org, Prashant.Sharma |
2014-03-14 00:02:56 | rhettinger | set | messageid: <1394755376.26.0.251868999454.issue20905@psf.upfronthosting.co.za> |
2014-03-14 00:02:56 | rhettinger | link | issue20905 messages |
2014-03-14 00:02:55 | rhettinger | create | |
|