> -----Original Message-----
> From: Python-ideas [mailto:python-ideas-bounces+tritium-
> [email protected]] On Behalf Of Oleg Broytman
> Sent: Wednesday, April 26, 2017 7:33 AM
> To: [email protected]
> Subject: Re: [Python-ideas] Augmented assignment syntax for objects.
> 
> On Wed, Apr 26, 2017 at 01:12:14PM +0200, Brice PARENT
> <[email protected]> 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.

> Oleg.
> --
>      Oleg Broytman            http://phdru.name/            [email protected]
>            Programmers don't die, they just GOSUB without RETURN.
> _______________________________________________
> Python-ideas mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/

_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to