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
Mario Ruggier
2004-10-15
On Oct 15, 2004, at 8:43 PM, David Binger wrote:
> On Oct 15, 2004, at 1:05 PM, Mario Ruggier wrote:
>>
>> But, irrespective of whether using __setattr__() is advisable or not,
>>  do you consider this a bug in durus
>
> I would prefer to call it a reasonable restriction. ;)
>
> I think this restriction could be removed, but at the cost of making
> the code in persistent.py uglier.

Fair enough. I do certainly appreciate the current clarity of the
code.... i would not have minded at all if I knew not to redefine
__setattr__, or not to access class variables via self. With some
documentation, and maybe catching of the exception, I would also agree
to call it a reasonable restriction but, as it is, it proved to be most
  unreasonably annoying ;(

Thanks for the spot-on explanations, though...

mario


reply