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 serhiy.storchaka
Recipients aroberge, pablogsal, serhiy.storchaka
Date 2021-04-10.07:49:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618040967.98.0.96623757684.issue43797@roundup.psfhosted.org>
In-reply-to
Content
"cannot assign to name" looks wrong. Usually we can assign to name, unless it is a keyword. And the problem is not that we cannot assign to name (we can), but that is is an invalid syntax, assignment is a statement, not an expression.

Seems it handles only simplest cases with "=" in "if". It does not handle "while x = 3" and "if y and x = 3". Could it be possible to make it more general.
History
Date User Action Args
2021-04-10 07:49:28serhiy.storchakasetrecipients: + serhiy.storchaka, aroberge, pablogsal
2021-04-10 07:49:27serhiy.storchakasetmessageid: <1618040967.98.0.96623757684.issue43797@roundup.psfhosted.org>
2021-04-10 07:49:27serhiy.storchakalinkissue43797 messages
2021-04-10 07:49:27serhiy.storchakacreate