Packing byte fields and an array object into struct

krishna2prasad at gmail.com krishna2prasad at gmail.com
Wed Nov 13 15:43:52 EST 2013


Correction in the last input line...

In [16]: result = struct.unpack('5p', os_inst[11:16])
---------------------------------------------------------------------------
error                                     Traceback (most recent call last)
<ipython-input-16-42b59e00d5af> in <module>()
----> 1 result = struct.unpack('5p', os_inst[11:16])

error: unpack requires a bytes object of length 5

In [17]: 



More information about the Python-list mailing list