New submission from Pablo Galindo Salgado <[email protected]>:
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
----------
messages: 390659
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Improve syntax error for invalid comparisons
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43797>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com