Re: __getattribute__ and __getattr__
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: __getattribute__ and __getattr__

From: Gigi <gigi-s@bigfoot.com>
Date: Mon May 30 2005 - 10:52:28 CEST

Terry Reedy wrote:
> "Gigi" <gigi-s@bigfoot.com> wrote in message
> news:d7dgd4$29v$1@sea.gmane.org...
>
>>Hi,
>>In the Python documentation regarding __getattribute__ (more attribute
>>access for new style classes) it is mentioned that if __getattribute__
>>is defined __getattr__ will never be called (unless called explicitely).
>>Here is the exact citation:
>
>
> Discrepancy reported in
>
> https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1204734&group_id=5470
>
> Guido declared behavior right and doc wrong and in need of correction.
>
> Terry J. Reedy
>
>
>

Thanks for your reply. It definitely clears the issue. I'm writing an
article to Dr. Dobbs about the Python object model and I wouldn't want
to be inaccurate. I fill a little like Leibnitz :-) . It's a curious
coincidence that two separate people notice the same documentation issue
that lingere for such a long time in such a short time span.

Thanks, Gigi
Received on Thu Sep 29 16:16:13 2005