In [ ]:
# Notes for working with struct
Includes functions that convert strings of bytes and native python data types
ex: str_of_bytes = '\x94\x82\xff\x3a' We want to convert this string of bytes in a python data type to manipulate
In [1]:
import struct
import binascii
In [2]:
values = (1, 'ab', 2.7)
In [4]:
s = struct.Struct('I 2s f')
dir(s)
Out[4]:
In [ ]: