if hasattr(self, attr): #update val
         self.__dict__[attr] = val


On 2/19/2009 3:54 AM Gabriel Genellina apparently wrote:
In particular, your code prevents using class attributes as a default
value for instance attributes

Doesn't the above allow that?

Thanks,
Alan
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to