Re: [Tutor] Fwd: iterating

2007-04-30 Thread Kent Johnson
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 y

[Tutor] Fwd: iterating

2007-04-30 Thread Cecilia Alm
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 deletin