I'm trying to use the struct.pack so I can write a string into a file. When I do, I get the following error:
File "----", line 166, in main
struct.pack('>256s', *master_header)
struct.error: pack expected 1 items for packing (got 256)
Now, reading from here I seem to be using it right. I specify that I'm getting 256 bytes/characters in my string.
I'm using version 3.3.3.
*?