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 arne
Recipients arne, emilyemorehouse, gvanrossum, xtreak
Date 2019-09-26.06:33:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569479608.75.0.217104358373.issue38277@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-09-26 06:33:28arnesetrecipients: + arne, gvanrossum, emilyemorehouse, xtreak
2019-09-26 06:33:28arnesetmessageid: <1569479608.75.0.217104358373.issue38277@roundup.psfhosted.org>
2019-09-26 06:33:28arnelinkissue38277 messages
2019-09-26 06:33:28arnecreate