On 2008-06-17, John Dann <[EMAIL PROTECTED]> wrote:
> I'm reading in a byte stream from a serial port (which I've got
> working OK with pyserial) and which contains numeric data in a packed
> binary format. Much of the data content occurs as integers encoded as
> 2 consecutive bytes, ie a 2-byte integer.

[snipperdesnip]

> Can anyone point me in the right direction towards a suitable function
> please?

The ctypes module should be helpful here

Sincerely,
Albert
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to