[Python-Dev] Rich Comparison from "C" API?

Tim Peters tim.one@comcast.net
Wed, 12 Jun 2002 12:01:10 -0400


[Tim]
> 1. You really want PyObject_RichCompareBool in your example, not
>    PyObject_RichCompare.  The former is much more efficient in some
>    cases (e.g., a total ordering on dicts is much hairer to determine
>    than just equality).


[David Abrahams]
> Now you're really pulling my leg. PyObject_RichCompareBool is just:
> ...
> How can that be more efficient that PyObject_RichCompare?

I wasn't pulling your leg there, I was simply wrong.  Who can blame me?  You
never documented this stuff <wink>.