Re: RuntimeError: dictionary changed size during iteration
Christoph Zwerschke <[email protected]> Wed, 28 Nov 2012 12:56:03 +0100
| Newsgroups | gmane.comp.python.webware |
|---|---|
| Message-ID | <[email protected]> |
Am 28.11.2012 12:10, schrieb Sophana K: > Look like another thread could be changing the _memoryStore during > this iteration. Should I change to > for key in list(self._memoryStore): Yes, this or "for key in self._memoryStore.keys()" should fix it. I have already committed this as a fix to the trunk. -- Chris ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net