> Any ideas?

how about list comprehension (should actually work even if there is an
empty sub-list):
>>> spam = [[1,2,3],[4,5,6],[7,8,9],[10,11,12]]
>>> [parrot for egg in spam for parrot in egg]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

-m

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

Reply via email to