Re: [Python-ideas] Augmented assignment syntax for objects.

2017-05-01 Thread Jerry Hill
On Thu, Apr 27, 2017 at 7:21 PM, Steven D'Aprano wrote: > On Wed, Apr 26, 2017 at 03:54:22PM -0400, Jerry Hill wrote: >> On Tue, Apr 25, 2017 at 8:05 PM, Ryan Gonzalez wrote: >> > def ___init__(self, self.attr): >> >> I'm not a python developer, I'

Re: [Python-ideas] Augmented assignment syntax for objects.

2017-04-26 Thread Jerry Hill
On Tue, Apr 25, 2017 at 8:05 PM, Ryan Gonzalez wrote: > def ___init__(self, self.attr): I'm not a python developer, I'm just a developer that uses python. That said, I really like this form. It eliminates most of the redundancy, while still being explicit. It's true that you have to repeat the