Message408298
let's see whether I promised too much, I don't know CPython's symtable.c too well yet ;-). Will shout for help when I get stuck.
Anyway, here is a related bug, coming from the same symtable function symtable_add_def_helper, also with an imprecise error location:
$ cat x.py
{i for i in range(5)
if (j := 0)
for j in range(5)}
$ ./python x.py
File "/home/cfbolz/projects/cpython/x.py", line 1
{i for i in range(5)
^^^^^^^^^^^^^^^^^^^^
SyntaxError: comprehension inner loop cannot rebind assignment expression target 'j' |
|
Date |
User |
Action |
Args |
2021-12-11 12:46:23 | Carl.Friedrich.Bolz | set | recipients:
+ Carl.Friedrich.Bolz, aroberge, pablogsal |
2021-12-11 12:46:23 | Carl.Friedrich.Bolz | set | messageid: <1639226783.49.0.625960267044.issue46042@roundup.psfhosted.org> |
2021-12-11 12:46:23 | Carl.Friedrich.Bolz | link | issue46042 messages |
2021-12-11 12:46:23 | Carl.Friedrich.Bolz | create | |
|