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 tim.peters
Recipients elliot.gorokhovsky, eryksun, mdk, ppperry, serhiy.storchaka, tim.peters, vstinner
Date 2017-03-12.05:07:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Elliot, PyObject_RichCompareBool calls PyObject_RichCompare.  That in turn does some checks, hides a small mountain of tests in the expansions of the recursion-checking macros, and calls do_richcompare.  That in turn does some useless (in the cases you're aiming at) tests and finally gets around to invoking tp_richcompare.  Your patch gets to that final step at once.

I'm surprised you didn't know that ;-)
Date User Action Args
2017-03-12 05:07:53tim.peterssetrecipients: + tim.peters, vstinner, serhiy.storchaka, eryksun, ppperry, mdk, elliot.gorokhovsky
2017-03-12 05:07:52tim.peterssetmessageid: <>
2017-03-12 05:07:52tim.peterslinkissue28685 messages
2017-03-12 05:07:52tim.peterscreate