Message389468
Is this change in behavior considered to be by design or is this issue an unintended consequence? It seems inconsistent that comprehensions have no visibility of variable previously defined in the same scoping for this particular use-case. Is there a way to work around this other than reworking the comprehension?
It seems odd that [ci for ci in c] does not produce the error but [c for i in [1]] does produce the error. |
|
Date |
User |
Action |
Args |
2021-03-24 15:20:11 | chrisgmorton | set | recipients:
+ chrisgmorton, terry.reedy |
2021-03-24 15:20:11 | chrisgmorton | set | messageid: <1616599211.17.0.194415792863.issue43481@roundup.psfhosted.org> |
2021-03-24 15:20:11 | chrisgmorton | link | issue43481 messages |
2021-03-24 15:20:11 | chrisgmorton | create | |
|