dictionary size changed during iteration

Mel mwilson at the-wire.com
Wed Apr 20 16:22:23 CEST 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