On Wed, Jul 4, 2018 at 7:37 AM, Serhiy Storchaka <storch...@gmail.com> wrote: > I believe most Python users are not > professional programmers -- they are sysadmins, scientists, hobbyists and > kids --
[citation needed] > In particularly mutating and > non-mutating operations are separated. The assignment expression breaks > this. [citation needed] In terms of blending mutating and non-mutating operations, augmented assignment is far worse. Contrast: >>> x = 1 >>> y = x >>> x += 1 >>> a = [1] >>> b = a >>> a += [2] Assignment expressions do the exact same thing as assignment statements, but also allow you to keep using that value. There is nothing about mutation. (Unless you believe that assignment *itself* is mutation, in which case Python is definitely the wrong language for you.) 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