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 Drekin, Jim.Jewett, catalin.iacob, codemiller, eric.araujo, ethan.furman, francescor, javawizard, lregebro, ncoghlan, python-dev, rhettinger
Date 2013-09-30.05:13:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380518019.19.0.549933147174.issue10042@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-09-30 05:13:39rhettingersetrecipients: + rhettinger, ncoghlan, eric.araujo, lregebro, francescor, ethan.furman, catalin.iacob, python-dev, javawizard, Jim.Jewett, Drekin, codemiller
2013-09-30 05:13:39rhettingersetmessageid: <1380518019.19.0.549933147174.issue10042@psf.upfronthosting.co.za>
2013-09-30 05:13:39rhettingerlinkissue10042 messages
2013-09-30 05:13:38rhettingercreate