16 Oct
2021
16 Oct
'21
6:58 p.m.
On Sat, Oct 16, 2021, 11:42 AM Erik Demaine
But the first one is much more suggestive of a generator comprehension. I would want/expect it to be equivalent to itertools.chain(), not create a tuple.
I guess you were referring to `(*it for it in its)` (proposed notation) rather than `(*it1, *it2, *it3)` (which already exists and builds a tuple).
Very good point! This is confusing. I could also read `(*it for it in its)` as wanting to build the following generator (or something like it):
Oops. Yes. I trimmed the wrong part from my phone. What you write!