This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients dai dai, xtreak
Date 2019-07-13.07:17:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563002229.36.0.927262992786.issue37582@roundup.psfhosted.org>
In-reply-to
Content
Changes like this needs to be discussed in python-ideas first https://mail.python.org/mailman3/lists/python-ideas.python.org/ . The current behavior is as below : 

>>> a, b += 1, 2
  File "<stdin>", line 1
SyntaxError: illegal expression for augmented assignment

See also for some reference to the initial PEP proposal : https://stackoverflow.com/a/18132749/2610955

There is also a comment related to this where this error is raised https://github.com/python/cpython/blob/b9a0376b0dedf16a2f82fa43d851119d1f7a2707/Python/ast.c#L3302

Augmented assignments can only have a name, a subscript, or an
attribute on the left, though, so we have to explicitly check for
those.

I would propose closing this now and reopening this if there is some consensus on moving forward with this in python-ideas.
History
Date User Action Args
2019-07-13 07:17:09xtreaksetrecipients: + xtreak, dai dai
2019-07-13 07:17:09xtreaksetmessageid: <1563002229.36.0.927262992786.issue37582@roundup.psfhosted.org>
2019-07-13 07:17:09xtreaklinkissue37582 messages
2019-07-13 07:17:09xtreakcreate