Hello, I have a list that includes lists of integers, in the form of: li = [[0, 1, 2], [3, 4, 5], ...]
packed = struct.pack(str(len(li)*3)+'i', li) The frmt part is right, as I'm multiplying by 3, 'cause each inner list has 3 elements. What can I do to get li as a single list of integers? I tried list comprehension in the form of: [([j for j in i]) for i in li] But that doesn't seem to work, any ideas? -- http://mail.python.org/mailman/listinfo/python-list