Thomas Lotze wrote:
> Hi,
> 
> I wonder what's the reason for iterating over a dict by keys:

I suspect that at least part of the reason is that given a key you can 
easily get the corresponding value, but given the value it's difficult 
to get the key.  Seems like a good choice for "bare" dict iteration.
--
Benji York
_______________________________________________
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