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 <1489295272.97.0.340730239961.issue28685@psf.upfronthosting.co.za>
In-reply-to
Content
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 ;-)
History
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: <1489295272.97.0.340730239961.issue28685@psf.upfronthosting.co.za>
2017-03-12 05:07:52tim.peterslinkissue28685 messages
2017-03-12 05:07:52tim.peterscreate