RichCompare and RichCompareBool
Aaron Brady
castironpi at gmail.com
Mon Mar 9 11:22:16 EDT 2009
On Mar 9, 10:11 am, Mark Dickinson <dicki... at gmail.com> wrote:
> On Mar 2, 10:33 am, Aaron Brady <castiro... at gmail.com> wrote:
>
> > The code for PyObject_RichCompare does not contain this, it doesn't
> > seem. Is it a bug?
>
> It's not a bug. See revision 67204:
>
> http://svn.python.org/view?view=rev&revision=67204
>
> Mark
My complaint was that the docs for the function, as well as its name,
are misleading. RichCompareBool should not take the short cut, and "x
in [x]" should call something else that does. (I am not arguing
against the decided behavior of "x in [x]", btw. There's no clear
case IMO.)
More information about the Python-list
mailing list