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
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to