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

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 16 07:26:20 CET 2008


Thomas Wouters wrote:
> 
> On Sat, Mar 15, 2008 at 6:07 PM, Greg Ewing <greg.ewing at canterbury.ac.nz 
> <mailto:greg.ewing at canterbury.ac.nz>> wrote:
> 
>      >>>>*a, b, c = a, b, *c
> 
>     +0 on allowing * in other than the last position.
> 
> The left-hand side of all this is already in. Only the rhs is new.

I'm worried that allowing things like

   x = a, b, *c, d, *e, f

is going to make people want to do this in a function
call as well. Does your patch permit that, or only
when constructing a tuple?

-- 
Greg


More information about the Python-3000 mailing list