Message198676
Nick, the latest version of the patch looks like a correct solution.
Before applying, please add a block comment showing why these shenanigans are necessary (i.e. the use self.__lt__ instead of the less-than operator because the former doesn't fall into recursive operator flipping).
Also, please add a note to the docs indicating 1) that NotImplemented is now supported as of version 3.4 and 2) that when speed matters, it is always better to code all four ordering operators by hand rather than paying the cost of total_ordering's layers of indirection. |
|
Date |
User |
Action |
Args |
2013-09-30 05:13:39 | rhettinger | set | recipients:
+ rhettinger, ncoghlan, eric.araujo, lregebro, francescor, ethan.furman, catalin.iacob, python-dev, javawizard, Jim.Jewett, Drekin, codemiller |
2013-09-30 05:13:39 | rhettinger | set | messageid: <1380518019.19.0.549933147174.issue10042@psf.upfronthosting.co.za> |
2013-09-30 05:13:39 | rhettinger | link | issue10042 messages |
2013-09-30 05:13:38 | rhettinger | create | |
|