]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF patch #820195: make object.__contains__() returns True or False instead
authorRaymond Hettinger <python@rcn.com>
Thu, 9 Oct 2003 20:51:07 +0000 (20:51 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 9 Oct 2003 20:51:07 +0000 (20:51 +0000)
commit6b560bc648a42d7c6a586852cd695309434c45ac
tree43a960a930998d89dc6386818f49d104fb7e858e
parent4e3b442c2e7825458919605ef0e1d8921c1bbb2f
SF patch #820195: make object.__contains__() returns True or False instead
   of 1 or 0.

Backport Guido's fix to the default __contains__() and to proxy_has_key()
so they will properly return booleans instead of integers.
Misc/NEWS
Objects/descrobject.c
Objects/typeobject.c