Help with sets

Gregory Ewing greg.ewing at
Tue Oct 12 02:11:18 CEST 2010

Robert Kern wrote:

> The reasoning for this decision is spelled out in the PEP introducing 
> the iterator feature:

There's also the question of whether 'if x in dict' should
compare keys only or both keys and values. This was also
hotly debated back when dicts were given an 'in' operator
(before that you had to use dict.haskey(x)). Can't remember
all the arguments, but it was definitely thought about.


More information about the Python-list mailing list