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-24.18:00:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611511246.56.0.166169475648.issue43017@roundup.psfhosted.org>
In-reply-to
Content
I have seen this confusion many users over the years. Instead of showing:

❯ python -c '[x,z for x,y in something]'
  File "<string>", line 1
    [x,z for x,y in something]
         ^
SyntaxError: invalid syntax

We can show:

❯ ./python -c '[x,z for x,y in something]'
  File "<string>", line 1
    [x,z for x,y in something]
     ^
SyntaxError: did you forgot parentheses around the comprehension target?
History
Date User Action Args
2021-01-24 18:00:46pablogsalsetrecipients: + pablogsal
2021-01-24 18:00:46pablogsalsetmessageid: <1611511246.56.0.166169475648.issue43017@roundup.psfhosted.org>
2021-01-24 18:00:46pablogsallinkissue43017 messages
2021-01-24 18:00:46pablogsalcreate