"Thomas Lotze" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> The reason I ask this on the python-3000 list is that I wonder whether 
> the
> iterating behaviour of dicts might be changed in Python 3k, so that in 
> the
> above code, foo() would be applied to the dict's values.

Dicts give you the choice of iterating by keys, values, or items (key,value 
pairs).  Keys was chosen as the default after much discussion because it 
was most intuitive to more people and was expected to be the most common in 
usage.  I believe the choice has worked well enough for most people, so 
that there is no reason to gratuitously break existing code.  So I strongly 
suspect the answer is 'no'.

Terry Jan Reedy



_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to