dictionary size changed during iteration

Mel mwilson at the-wire.com
Wed Apr 20 10:22:23 EDT 2011


Mel wrote:
> Laszlo Nagy wrote:
> `ukeys` isn't a different dictionary from `self.updates.keys`  I'ts merely
> another name referring to the same dict object.  I think
> 
> ukeys = dict (self.updates.keys)
> 
> would do what you want.

Sorry.  Belay that.  Thought I'd had enough coffee.

	Mel.




More information about the Python-list mailing list