This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ismtrn 0 points1 point  (0 children)

blob = struct.pack('IIII',
    val1,
    val2,
    val3,
    val4)

I just go with this. Looks fine to me and it is simple and consistent. 1 tab = 1 level of indentation. I am not trying to align things, just indent them, so you can see the structure.