Author adelfino
Recipients adelfino, cheryl.sabella, docs@python, r.david.murray
Date 2018-05-11.17:56:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The thing is that "tuple displays" like:

nums = (n for n in range(10))

Yield a generator expression instead of a tuple.

Also, unparenthesized "tuple displays" like 1, 2, 3 can't be used in expressions, AFAIK:

>>> if 3 == 1, 2, 3:
SyntaxError: invalid syntax

So, you end up using parenthesized expressions (that may or may not shield tuples) to use tuples in expressions. So talking about "tuple expressions" in the operator precedence table doesn't make much sense to me :/

Also, if a "tuple display" doesn't yield a tuple, should it be named a "tuple display" after all?
Date User Action Args
2018-05-11 17:56:15adelfinosetrecipients: + adelfino, r.david.murray, docs@python, cheryl.sabella
2018-05-11 17:56:15adelfinosetmessageid: <>
2018-05-11 17:56:15adelfinolinkissue33459 messages
2018-05-11 17:56:14adelfinocreate