]> granicus.if.org Git - python/commit
Implement __contains__ for dict_keys and dict_items.
authorGuido van Rossum <guido@python.org>
Sat, 10 Feb 2007 18:55:06 +0000 (18:55 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 10 Feb 2007 18:55:06 +0000 (18:55 +0000)
commit3ac6741f7922b7fdf05f9ba231c6eeff73580f8a
tree6d83c8b07925e43993c2d7c77bf648d1e31a6932
parent83825acd1bd02148c75bd2f4469767d4839196d3
Implement __contains__ for dict_keys and dict_items.
(Not for dict_values, where it can't be done faster than
the default implementation which just iterates the elements.)
Lib/test/test_dictviews.py
Objects/dictobject.c