[Python-ideas] Fwd: unpacking generalisations for list comprehension
אלעזר
elazarg at gmail.com
Thu Oct 13 17:09:12 EDT 2016
On Fri, Oct 14, 2016 at 12:06 AM Neil Girdhar <mistersheik at gmail.com> wrote:
<snip>
> Regarding Steven's example, like Sven, I also see it this way:
>
> [*t for t in [(1, 'a'), (2, 'b'), (3, 'c')]]
>
> should mean:
>
> [*(1, 'a'), *(2, 'b'), *(3, 'c')]]
>
> Which coincides with what the OP is asking for.
>
<snip>
>
>From a CPython implementation standpoint, we specifically blocked this code
> path, and it is only a matter of unblocking it if we want to support this.
>
>
This is *very, very* not surprising. And should be stressed.
Elazar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20161013/fde7e188/attachment-0001.html>
More information about the Python-ideas
mailing list