[Python-Dev] Summary of "dynamic attribute access" discussion

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Feb 14 02:58:38 CET 2007


Ron Adam wrote:

> Would it be possible for attrview to be a property?

To avoid polluting the namespace, it would need to have
a double-underscore name, and then it would be ugly to
use.

Unless we had a function to call it for you... oh,
wait, we've already got one -- it's called getattr. :-)

--
Greg


More information about the Python-Dev mailing list