Re: RuntimeError: dictionary changed size during iteration
Sophana K <[email protected]> Fri, 30 Nov 2012 13:48:27 +0100
| Newsgroups | gmane.comp.python.webware |
|---|---|
| Message-ID | <CADP5dB6Dtj__qN4ByvAwx_N7dVkTAa1W+9jxxw=B6+Ro9GYtGA@mail.gmail.com> |
--===============1057854265135553533==
Content-Type: multipart/alternative; boundary=bcaec554d4bee075fe04cfb5d0a0
--bcaec554d4bee075fe04cfb5d0a0
Content-Type: text/plain; charset=ISO-8859-1
It seems the problem has now moved to another place.
Should I try the trunk?
File "/home/.../Webware-1.1/WebKit/Tasks/SessionTask.py", line 13, in run
self._sessionstore.cleanStaleSessions(self)
File "/home/.../Webware-1.1/WebKit/SessionDynamicStore.py", line
256, in cleanStaleSessions
self._memoryStore.cleanStaleSessions(task)
File "/home/.../Webware-1.1/WebKit/SessionStore.py", line 202, in
cleanStaleSessions
for key in self:
RuntimeError: dictionary changed size during iteration
On Wed, Nov 28, 2012 at 12:56 PM, Christoph Zwerschke <[email protected]>wrote:
> 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
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
--bcaec554d4bee075fe04cfb5d0a0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div>It seems the problem has now moved to another place.<br></div><div>Sho=
uld I try the trunk?</div><div><pre> File "/home/.../Webware-1.1/WebKi=
t/Tasks/SessionTask.py", line 13, in run
self._sessionstore.cleanStaleSessions(self)
File "/home/.../Webware-1.1/WebKit/SessionDynamicStore.py", lin=
e 256, in cleanStaleSessions
self._memoryStore.cleanStaleSessions(task)
File "/home/.../Webware-1.1/WebKit/SessionStore.py", line 202, =
in cleanStaleSessions
for key in self:
RuntimeError: dictionary changed size during iteration</pre></div><div clas=
s=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Wed, Nov 28, 2012 a=
t 12:56 PM, Christoph Zwerschke <span dir=3D"ltr"><<a href=3D"mailto:cit=
[email protected]" target=3D"_blank">[email protected]</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Am 28.11.2012 12:10, schrieb Sophana K:<br>
<div class=3D"im">> Look like another thread could be changing the _memo=
ryStore during<br>
> this iteration. Should I change to<br>
=A0> for key in list(self._memoryStore):<br>
<br>
</div>Yes, this or "for key in self._memoryStore.keys()" should f=
ix it. I have<br>
already committed this as a fix to the trunk.<br>
<br>
-- Chris<br>
<br>
---------------------------------------------------------------------------=
---<br>
Keep yourself connected to Go Parallel:<br>
INSIGHTS What's next for parallel hardware, programming and related are=
as?<br>
Interviews and blogs by thought leaders keep you ahead of the curve.<br>
<a href=3D"http://goparallel.sourceforge.net" target=3D"_blank">http://gopa=
rallel.sourceforge.net</a><br>
_______________________________________________<br>
Webware-discuss mailing list<br>
<a href=3D"mailto:Webware-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org">Webware-discuss@li=
sts.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/webware-discuss" ta=
rget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/webware-discus=
s</a><br>
</blockquote></div><br></div>
--bcaec554d4bee075fe04cfb5d0a0--
--===============1057854265135553533==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
--===============1057854265135553533==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Webware-discuss mailing list
Webware-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/webware-discuss
--===============1057854265135553533==--