18 Nov
2019
18 Nov
'19
4:45 a.m.
On Sun, Nov 17, 2019, at 21:39, Daniel Zeng wrote:
Syntax for tuple comprehension, something like: (i, for i in range(10))
This shouldn't result in ambiguity, since generators need to be in parentheses anyway: (i, for i in range(10)) vs (1, (i for i in range(10)))
I think it should be (i for i in range(10),). I'd expect your syntax to make a generator that yields 1-tuples.