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 attributesDoesn't the above allow that?
Sorry, yes, sure! -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list