Author r.david.murray
Recipients adelfino, cheryl.sabella, docs@python, r.david.murray
Date 2018-05-11.18:25:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
That's a generator expression, just like [x for x in ramge(3)] is a list comprehension, not a list display.  And yes, in a number of circumstances parenthesis are required to delimit the tuple display and disambiguate the syntax.  That is, it is the 1, 2, 3 that is the tuple display, but sometimes you have to enclose it in parenthesis in order for the parser to recognize it.  Which is why it would be good to give a more thorough explanation of what a tuple display is than the unlabeled one Cheryl pointed out.  I'm not entirely sure what the exact rules are for when you get a syntax error without the parens, myself :)
Date User Action Args
2018-05-11 18:25:27r.david.murraysetrecipients: + r.david.murray, docs@python, cheryl.sabella, adelfino
2018-05-11 18:25:27r.david.murraysetmessageid: <>
2018-05-11 18:25:27r.david.murraylinkissue33459 messages
2018-05-11 18:25:27r.david.murraycreate