Lennart Regebro wrote at 2005-5-23 13:29 +0200:
>I get "TypeError: object does not support item assignment" in  lin 46
>och class_init.py.
>
>The offending code is "d['_implicit__name__'] = 1" and this is because
>d is a proxydict. This in turn is caused by Localizer having a class
>as a class attribute:

At other places, a similar problem could be solved by
"setattr(class, attr, value)" instead of "class.__dict__[attr] = value".

-- 
Dieter
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to