Donn wrote:
3. return getattr(self, property.name)
How does it differ from just
using "return self.property.name"?
The getattr function uses the run-time value of
the given expression as the name of the attribute.
So, for example, if property.name has the value
"spam", then getattr(self, property.name) is
equivalent to self.spam.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiem! |
Christchurch, New Zealand | (I'm not a morning person.) |
[EMAIL PROTECTED] +--------------------------------------+
_______________________________________________
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/