Message385586
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? |
|
Date |
User |
Action |
Args |
2021-01-24 18:00:46 | pablogsal | set | recipients:
+ pablogsal |
2021-01-24 18:00:46 | pablogsal | set | messageid: <1611511246.56.0.166169475648.issue43017@roundup.psfhosted.org> |
2021-01-24 18:00:46 | pablogsal | link | issue43017 messages |
2021-01-24 18:00:46 | pablogsal | create | |
|