Re: __getattribute__ and __getattr__

2005-05-31 Thread Peter Otten
Gigi wrote: > to be inaccurate. I fill a little like Leibnitz :-) . It's a curious It's Leibniz -- unless you're in the cookie business. I see your post for the third time, btw. What's wrong? Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: __getattribute__ and __getattr__

2005-05-31 Thread Gigi
Terry Reedy wrote: > "Gigi" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>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

Re: __getattribute__ and __getattr__

2005-05-30 Thread Gigi
Terry Reedy wrote: > "Gigi" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>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

Re: __getattribute__ and __getattr__

2005-05-30 Thread Gigi
Terry Reedy wrote: > "Gigi" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>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

Re: __getattribute__ and __getattr__

2005-05-29 Thread Terry Reedy
"Gigi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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). > H

__getattribute__ and __getattr__

2005-05-29 Thread Gigi
discovered that it is not so for Python 2.3.4 on Windows at least. The actual behavior is that if both __getattribute__ and __getattr__ methods exist then __getattribute__ is called first, but if it raises AttributeError then the exception will be swallowed silently and __getattr__ will be invoke