Message353268
I'll keep shouting from the sidelines, if it's ok.
Is the following behavior still desired
>>> [z := x for x in 'foo'] # valid
over forcing parentheses here as well?
>>> [(z := x) for x in 'foo'] # also valid, but redundant parentheses
The section on when to add parentheses in comprehensions would be a lot simpler if the answer was 'always', with an asterisk saying that the restriction might be lifted for some cases if there is a demand and a good-enough implementation. |
|
Date |
User |
Action |
Args |
2019-09-26 06:33:28 | arne | set | recipients:
+ arne, gvanrossum, emilyemorehouse, xtreak |
2019-09-26 06:33:28 | arne | set | messageid: <1569479608.75.0.217104358373.issue38277@roundup.psfhosted.org> |
2019-09-26 06:33:28 | arne | link | issue38277 messages |
2019-09-26 06:33:28 | arne | create | |
|