Skip to content

Instantly share code, notes, and snippets.

@Arachnid
Created August 28, 2014 22:00
Embed
What would you like to do?
>>> struct.pack("B", 0x38) + struct.pack("H", 0)
'8\x00\x00'
>>> struct.pack("BH", 0x38, 0)
'8\x00\x00\x00'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment