Message316407
Ignore the previous comment.
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 to use tuples in expressions. So talking about "tuple displays" 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:57:29 | adelfino | set | recipients:
+ adelfino, r.david.murray, docs@python, cheryl.sabella |
2018-05-11 17:57:29 | adelfino | set | messageid: <1526061449.49.0.682650639539.issue33459@psf.upfronthosting.co.za> |
2018-05-11 17:57:29 | adelfino | link | issue33459 messages |
2018-05-11 17:57:29 | adelfino | create | |
|