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-01-22.01:20:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611278405.38.0.0749709348669.issue42997@roundup.psfhosted.org>
In-reply-to
Content
Instead of displaying a generic syntax error:

Python 3.8.6 (default, Oct 10 2020, 18:31:21)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> for x in range
  File "<stdin>", line 1
    for x in range
                 ^
SyntaxError: invalid syntax
>>>

we could display:

>>> for x in range
  File "<stdin>", line 1
    for x in range
                  ^
SyntaxError: expected ':'

The same idea applies for every suite that has a missing ':'
History
Date User Action Args
2021-01-22 01:20:05pablogsalsetrecipients: + pablogsal
2021-01-22 01:20:05pablogsalsetmessageid: <1611278405.38.0.0749709348669.issue42997@roundup.psfhosted.org>
2021-01-22 01:20:05pablogsallinkissue42997 messages
2021-01-22 01:20:04pablogsalcreate