[Tutor] __callattr__ ?

spir denis.spir at free.fr
Mon Mar 30 11:51:26 CEST 2009


Is there something like a __callattr__ magic method that would catch either unknown (like __getattr__) or all (like __getattribute__) method calls?
If not, how would you do that? Also if not, do you know why we have __getattr__, __setattr__, but no __callattr__?

la vita e estrany

More information about the Tutor mailing list