Packing a list of lists with struct.pack()

Panos Laganakos panos.laganakos at gmail.com
Mon Apr 24 12:29:53 EDT 2006


Just came up with this:

litemp = []

[litemp.extend(i) for i in li]

Seems to give me a list with all the inner elements of li, not sure if
struct.pack will accept it now, but I'll give it a try.




More information about the Python-list mailing list