On Wed, Apr 26, 2017 at 2:02 PM, tritium-list@sdamon.com wrote:
On Wed, Apr 26, 2017 at 01:12:14PM +0200, Brice PARENT contact@brice.xyz wrote:
def _set_multiple(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value)
self.__dict__.update(kwargs)
Touching __dict__ feels dirty to me.
vars(self).update(kwargs)?
㎝