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!

>
>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/2DVYZFEIF3H7DJJD36XQRKQCSAFATB7C/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to