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
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
> 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
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