trouble converting c++ bitshift to python equivalent
nanodust at gmail.com
nanodust at gmail.com
Thu May 24 16:39:55 EDT 2007
> You should really use the struct module for that type of conversion, but
> you also need to know that indexing of lists and tuples starts at 0, not 1.
indeed, i used to have temp = unpack('h', tBuf[1,3])
but it was a hack (and as such a bit off ;) as i was having troubles
casting
not quite used to python yet, will get there...
thanks again !!
More information about the Python-list
mailing list