the issue i have is when doing this in
the general issue is how to wedge anything normally done in an instance of a class. the simple wedge of printing what happens and then do it seems hard in Python.
__getattribute__()
.1 2 3 4 5 6 |
class ...: ... def __getattribute__( self ,attr): print ( f 'looking up attribute {attr!r}' ,flush = True ) return getattr ( self ,attr, None ) ... |
the general issue is how to wedge anything normally done in an instance of a class. the simple wedge of printing what happens and then do it seems hard in Python.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.