On Mar 9, 10:11 am, Mark Dickinson <dicki...@gmail.com> wrote: > On Mar 2, 10:33 am, Aaron Brady <castiro...@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.) -- http://mail.python.org/mailman/listinfo/python-list