]> granicus.if.org Git - python/commit
Issue #4296: Fix PyObject_RichCompareBool so that "x in [x]" evaluates to
authorMark Dickinson <dickinsm@gmail.com>
Wed, 12 Nov 2008 23:23:36 +0000 (23:23 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Wed, 12 Nov 2008 23:23:36 +0000 (23:23 +0000)
commit4a1f593df5d4733831a1c4f03ca40c701433c43d
tree0aea7b57d9c6fad40a32cca6be0993bd607ed9e2
parent3d4ca74bc85c4224498e75704f82e4d42b6a04df
Issue #4296: Fix PyObject_RichCompareBool so that "x in [x]" evaluates to
True, even when x doesn't compare equal to itself.  This was a regression
from 2.6.

Reviewed by R. Hettinger and C. Heimes.
Lib/test/test_contains.py
Lib/test/test_float.py
Misc/NEWS
Objects/object.c