[issue6100] Expanding arrays inside other arrays

2009-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. This and more is part of #2292 -- nosy: +tjreedy resolution: -> duplicate status: open -> closed superseder: -> Missing *-unpacking generalizations ___ Python tracker _

[issue6100] Expanding arrays inside other arrays

2009-05-24 Thread marek_sp
New submission from marek_sp : Hello! I recently thought about a nice feature (pure syntactic sugar): >>> a = [2,3,4] >>> b = [1,*a,5] >>> print b [1, 2, 3 ,4 ,5] instead of: >>> b = [1]+a+[5] I think first one is somewhat more readable and similiar thing already is possible with function calls