Re: __getattr__ and __getattribute__

2007-05-09 Thread km
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 with a bit of history. On earlier Python versions (before 2.2) the only object model available wa

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

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

__getattr__ and __getattribute__

2007-05-08 Thread km
Hi all, 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 ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list