delegate functions to member

Ulrich Eckhardt eckhardt at satorlaser.com
Tue Aug 10 08:20:22 EDT 2010


Peter Otten wrote:
> Ulrich Eckhardt wrote:
>> So, short follow-up question: Why does this work?
> 
> __getattr__() is a fallback that is only tried when the normal lookup
> fails. If you need to intercept every attribute lookup use
> __getattribute__() instead:

Thank you Peter, that was the missing piece to understand it!

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932




More information about the Python-list mailing list