Im trying to convert my very long integer list i a binary array (list) Im using struct.pack() and it works well but i think this is very ugly:
buf = pack(">IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII", *data)
I need to do this because my list has 113 Items with large and small values. Is there a option to use pack() with a long list without having 113 "I"'s?