Re: __getattr__ and __getattribute__

2007-05-09 Thread km
Oh thats lucid! thanks for the explanation. regards KM - On 5/9/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: En Tue, 08 May 2007 08:22:03 -0300, km <[EMAIL PROTECTED]> escribió: > i find it difficult to understand the difference b

Re: __getattr__ and __getattribute__

2007-05-08 Thread Gabriel Genellina
En Tue, 08 May 2007 08:22:03 -0300, km <[EMAIL PROTECTED]> escribió: > i find it difficult to understand the difference between the magic > methods > __getattr__ and __getattribute__ > and so donot know when to use former or later. > can someone brief me on it ? This is better understood wit

Re: __getattr__ and __getattribute__

2007-05-08 Thread Daniel Nogradi
> i find it difficult to understand the difference between the magic methods > __getattr__ and __getattribute__ > and so donot know when to use former or later. >From the docs: __getattr__(self, name) Called when an attribute lookup has not found the attribute in the usual places (i.e. it is not