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 Carl.Friedrich.Bolz
Recipients Carl.Friedrich.Bolz, pablogsal
Date 2021-11-05.12:44:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636116249.02.0.999141328872.issue45727@roundup.psfhosted.org>
In-reply-to
Content
I found following inconsistency in the error message when there's a missing comma (it behaves that way both on main and 3.10).

Here's what happens with numbers, as expected:

Python 3.11.0a1+ (heads/main:32f55d1a5d, Nov  5 2021, 13:18:52) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 2 3 4
  File "<stdin>", line 1
    1 2 3 4
    ^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?

But with names the error is further right in the lines:

>>> a b c d
  File "<stdin>", line 1
    a b c d
      ^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
>>> a b c d e f g
  File "<stdin>", line 1
    a b c d e f g
              ^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?

That looks potentially quite confusing to me?

(I don't know if these nit-picky parsing issues are too annoying, if they are please tell me to stop filing them).
History
Date User Action Args
2021-11-05 12:44:09Carl.Friedrich.Bolzsetrecipients: + Carl.Friedrich.Bolz, pablogsal
2021-11-05 12:44:09Carl.Friedrich.Bolzsetmessageid: <1636116249.02.0.999141328872.issue45727@roundup.psfhosted.org>
2021-11-05 12:44:08Carl.Friedrich.Bolzlinkissue45727 messages
2021-11-05 12:44:08Carl.Friedrich.Bolzcreate