This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author knzsys
Recipients knzsys
Date 2017-06-20.13:37:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497965865.71.0.00856344904616.issue30712@psf.upfronthosting.co.za>
In-reply-to
Content
#Working code:
from struct import *
rawdata = 'A'*196
laserdata = list(unpack('2s2s29H',rawdata[14:76]))
laserdata += list(unpack('26f3L4s',rawdata[76:196]))					

#This code generates error:
from struct import *
rawdata = 'A'*196
laserdata = list(unpack('2s2s29H26f3L4s',rawdata[14:196]))
# Does not work due to python bug: unpack calculates wrong size 184 (should be 182) from format string and generates error: 

#struct.error: unpack requires a string argument of length 184
History
Date User Action Args
2017-06-20 13:37:45knzsyssetrecipients: + knzsys
2017-06-20 13:37:45knzsyssetmessageid: <1497965865.71.0.00856344904616.issue30712@psf.upfronthosting.co.za>
2017-06-20 13:37:45knzsyslinkissue30712 messages
2017-06-20 13:37:45knzsyscreate