[Python-3000] Using *a for packing in lists and other places

Paul Moore p.f.moore at gmail.com
Sat Mar 15 18:33:33 CET 2008


On 15/03/2008, Guido van Rossum <guido at python.org> wrote:
> Thomas Wouters suggests some new syntax:
>
>  http://bugs.python.org/issue2292
[...]
>  What do people think?

I like it. It's on the border of being too obscure (the examples are
logical, but I need to think to apply the logic - if you see what I
mean), but overall I think it's a reasonable generalisation. As Brett
says, the yield example is compelling. I like "yield *it" much better
than the current somewhat clumsy idiom "for val in it: yield val".

Paul.


More information about the Python-3000 mailing list