"RuntimeError: dictionary changed size during iteration" ; Good atomic copy operations?

anamax at earthlink.net anamax at earthlink.net
Mon Mar 13 11:18:02 EST 2006


> robert wrote:
> Meanwhile I think this is a bug of cPickle.dump: It should use .keys()
> instead of free iteration internally, when pickling elementary dicts.
> I'd file a bug if no objection.

What should happen if there's a delete between the time the .keys()
runs and the time that the deleted element is processed by
cPickle.dump?

-andy




More information about the Python-list mailing list