From: Ulrich Eckhardt on 10 Aug 2010 08:20 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
First
|
Prev
|
Pages: 1 2 Prev: Using the print command in Python3 Next: MailingLogger 3.3.3 Released! |