[EMAIL PROTECTED] wrote:
fmt = str(chunklen) + 'B'
fmtsize = struct.calcsize(fmt)
rawdata = struct.unpack(fmt, s[:fmtsize])
rawdata = list(rawdata)

Then I tried to convert it:

charary = array.array('b')
charary.fromlist(rawdata)

Uh, don't you want to be consistent in your use of signed and unsigned characters? You've got both a 'B' and a 'b' above, and I believe you need to pick one and stick with it... -- http://mail.python.org/mailman/listinfo/python-list

Reply via email to