durusmail: durus-users: __setattr__ RuntimeError: max recursion depth exceeded
__setattr__ RuntimeError: max recursion depth exceeded
2004-10-15
Mario Ruggier (2 parts)
__setattr__ RuntimeError: max recursion depth exceeded
2004-10-15
2004-10-15
2004-10-15
2004-10-15
2004-10-15
2004-10-15
__setattr__ RuntimeError: max recursion depth exceeded
David Binger
2004-10-15
On Oct 15, 2004, at 12:08 PM, Mario Ruggier wrote:

> 

Getting the __special_atts__ from self before calling the
super __setattr__ seems to cause this.

Alternatives that seem to work:

Call the super() before the if attr in __special_atts__.

Don't get __special_atts__ from self.  Maybe from self.__class__.

Get the attribute from self using object.__getattribute__() (yuck).

My favorite: avoid modifying __setattr__().










reply