DictProxy? What is this?

2006-06-26 Thread digitalorganics
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? I thought that __dict__ is always suppose to be a, no kidding, dictionary? Hence there should indeed be an update method. What's this proxy

Re: DictProxy? What is this?

2006-06-26 Thread Fredrik Lundh
[EMAIL PROTECTED] 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

Re: DictProxy? What is this?

2006-06-26 Thread digitalorganics
Fredrik Lundh wrote: [EMAIL PROTECTED] 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

Re: DictProxy? What is this?

2006-06-26 Thread Maric Michaud
Le lundi 26 juin 2006 16:06, [EMAIL PROTECTED] a écrit : Fredrik Lundh wrote: [EMAIL PROTECTED] 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

Re: DictProxy? What is this?

2006-06-26 Thread digitalorganics
All right. Thanks for explaining that Maric. Maric Michaud wrote: Le lundi 26 juin 2006 16:06, [EMAIL PROTECTED] a écrit : Fredrik Lundh wrote: [EMAIL PROTECTED] wrote: When I tried to update a class's __dict__, I got an error saying that there is no 'update' attribute for dictproxy