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 pablogsal
Recipients pablogsal
Date 2021-04-09.19:11:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617995491.91.0.835586864843.issue43797@roundup.psfhosted.org>
In-reply-to
Content
Improve syntax error for invalid comparisons such as:

>>> if x = 3:
  File "<stdin>", line 1
    if x = 3:
         ^
SyntaxError: invalid syntax

to print:

>>> if x = 3:
  File "<stdin>", line 1
    if x = 3:
         ^
SyntaxError: cannot assign to name. Maybe you meant '==' or ':=' instead of '='?

instead
History
Date User Action Args
2021-04-09 19:11:31pablogsalsetrecipients: + pablogsal
2021-04-09 19:11:31pablogsalsetmessageid: <1617995491.91.0.835586864843.issue43797@roundup.psfhosted.org>
2021-04-09 19:11:31pablogsallinkissue43797 messages
2021-04-09 19:11:31pablogsalcreate