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

Thomas Wouters thomas at python.org
Sun Mar 16 02:46:58 CET 2008


On Sat, Mar 15, 2008 at 6:07 PM, Greg Ewing <greg.ewing at canterbury.ac.nz>
wrote:
> Guido van Rossum wrote:
> > Thomas Wouters suggests some new syntax:
>> >>>>a, b, *c = range(5)
>> +1 on this.
>> >>>>*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.
-- 
Thomas Wouters <thomas at python.org>
Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20080315/e0652e97/attachment.htm 


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /