Bill Kelly wrote:

>From: "Jason Voegele" <jason / jvoegele.com>
>  
>
>>As I've mentioned, the data is in 2s complement representation[1] such 
>>that 1 is encoded as "\001\000\000\000\000\000\000\000" and -1 is 
>>encoded as "\377\377\377\377\377\377\377\377" (those are both little 
>>endian, by the way)
>>
>How about unpacking the string as: nn = str.unpack("lL"),
>(or whichever endian-format is appropriate for your situation),
>then combining the halves as: n = (nn[0] << 32) | nn[1]
>  
>
Beautiful!  Worked like a charm.  Thanks, Bill!

Jason Voegele