On Thu, Jul 5, 2018 at 3:15 PM, Guido van Rossum <gu...@python.org> wrote:
> Let me be slightly contrarian. :-)
>
> On Wed, Jul 4, 2018 at 9:12 PM Chris Angelico <ros...@gmail.com> wrote:
>> 2) Is the result of the expression the modified value or the original?
>
> Someone (sadly I forget who) showed, convincingly (to me anyways :-) that it
> should return whatever the `__iadd__` method returns, or (if there isn't
> one) the result of `a = a + b`.

I happen to feel the same way, but it does destroy the elegance of "x
:= expr" having the exact same value as "expr", and ALSO having the
exact same value as "x". But yes, the biggest argument is the lack of
use cases, for both iadd and unpacking.

ChrisA
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to