On Thu, 2007-12-13 at 07:06 -0500, Stephan Richter wrote:
> On Thursday 13 December 2007, Justin Fletcher wrote:
> > for i in root['mysite'].keys():
> >      del(root['mysite'][i])
> 
> "keys()" produces an iterator that assumes the data structure is not changed; 
> Use list(root['mysite'].keys()) instead.
> 
> Regards,
> Stephan


Ah.. I understand.  This is exactly what I needed.

Thanks again,
-Justin

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to