Robert Kern wrote:

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

  http://www.python.org/dev/peps/pep-0234/

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.

--
Greg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to