[Python-3000-checkins] r53724 - in python/branches/p3yk: Lib/test/test_dictviews.py Objects/dictobject.c

Brett Cannon brett at python.org
Sun Feb 11 00:16:21 CET 2007


On 2/10/07, guido.van.rossum <python-3000-checkins at python.org> wrote:
> Author: guido.van.rossum
> Date: Sat Feb 10 19:55:06 2007
> New Revision: 53724
>
> Modified:
>    python/branches/p3yk/Lib/test/test_dictviews.py
>    python/branches/p3yk/Objects/dictobject.c
> Log:
> 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.)

What default implementation?  I assume you don't mean the default way
for dicts since you are already using that for keys and items.

-Brett


More information about the Python-3000-checkins mailing list