[Python-Dev] __getattr__ and new style classes

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 9 01:55:23 CEST 2008

Kristján Valur Jónsson wrote:

> Using new style classes to provide attribute-like access using 
> __getattr__ is considerably slower than old style classes

Do you really need __getattr__, or could you use
properties instead?


More information about the Python-Dev mailing list