Cecilia Alm wrote: > 2007/4/30, Kent Johnson <[EMAIL PROTECTED]>: > . Also if you are adding or deleting from the dict >> during the iteration then dict.keys() is safer because the list of keys >> is created before the add and delete. > > Thanks for the response; by adding and deleting, I assume you refer to > adding or deleting keys (rather than changing the value associated > with the key).
Right, I think changing a value will be safe. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor