[pygtk] getattr confusion

Donn donn.ingle at gmail.com
Thu Oct 25 22:01:31 WST 2007


Hey Abel!
> The difference is this: If property.name has the value 'foo', then
> getattr(self, property.name) is equivalent to getattr(self, 'foo'),
Ah, I didn't spot that. Subtle. Thanks.


/d

-- 
If there is anyone in the audience who believes in telekinesis, please raise 
my hand!
-- James Randi



More information about the pygtk mailing list