"Peter Otten" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>> A slightly similar problem: If I want to "merge," say, list1=[1,2,3] ...
>>>> items = [None] * 6
>>>> items[::2] = 1,2,3
>>>> items[1::2] = 4,5,6
>>>> items
> [1, 4, 2, 5, 3, 6]

Thanks Peter, that's pretty clean -- I like it!


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to