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). -- E. Cecilia Alm Graduate student, Dept. of Linguistics, UIUC Office: 2013 Beckman Institute -- E. Cecilia Alm Graduate student, Dept. of Linguistics, UIUC Office: 2013 Beckman Institute _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor