Re: __getattr__ and __getattribute__

2007-05-09 Thread km
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 was what we now call classic classes

__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

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

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