]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Expose dict_contains() and PyDict_Contains() with is about 10% faster
authorRaymond Hettinger <python@rcn.com>
Tue, 25 Nov 2003 21:12:14 +0000 (21:12 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 25 Nov 2003 21:12:14 +0000 (21:12 +0000)
commitbc0f2ab9bbe1380a32cc63823258a337a525fb32
tree4e0f76ebe43b74cab10b1e6bd41b1d90fe6f8230
parent3972457de72fa6d95d94df14a3bb402798aa092c
Expose dict_contains() and PyDict_Contains() with is about 10% faster
than PySequence_Contains() and more clearly applicable to dicts.

Apply the new function in setobject.c where __contains__ checking is
ubiquitous.
Doc/api/concrete.tex
Include/dictobject.h
Misc/NEWS
Objects/dictobject.c
Objects/setobject.c