DictProxy? What is this?

digitalorganics at gmail.com digitalorganics at gmail.com
Mon Jun 26 10:06:11 EDT 2006


Fredrik Lundh wrote:
> digitalorganics at gmail.com wrote:
>
> > When I tried to update a class's __dict__, I got an error saying that
> > there is no 'update' attribute for dictproxy object. What is a
> > dictproxy object?
>
> a CPython implementation detail, used to protect an internal data structure used
> by new-style objects from unexpected modifications.
>
> </F>

Ah, so I'm not suppose to be able to change a class's __dict__? Thanks
Fredrik.




More information about the Python-list mailing list