Re: recursion error using setattr and getattr

2007-06-07 Thread Gabriel Genellina
En Thu, 07 Jun 2007 08:23:48 -0300, Nathan Harmston <[EMAIL PROTECTED]> escribió: > I m trying to implement an object which contains lazy" variables. My > idea is to alter the getattr and the setattr methods. However I keep > on getting a recursion error. Instead of setattr/getattr, use a prope

Re: recursion error using setattr and getattr

2007-06-07 Thread Simon Brunning
On 6/7/07, Nathan Harmston <[EMAIL PROTECTED]> wrote: > Hi, > > I m trying to implement an object which contains lazy" variables. My > idea is to alter the getattr and the setattr methods. However I keep > on getting a recursion error. Simplifying radically, you are doing: def __setattr__(sel