Elliot Gorokhovsky added the comment: I am embarrassed! That's why I said IIRC... I remembered that either RichCompare calls RichCompareBool, or the other way around, and I was too lazy to check :) I did remember about do_richcompare, though!
On Sat, Mar 11, 2017 at 10:07 PM Tim Peters <rep...@bugs.python.org> wrote: > > Tim Peters added the comment: > > 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 ;-) > > ---------- > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue28685> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28685> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com