Converting 2 bytes string into INT

Denis S. Otkidach ods at fep.ru
Fri Jul 12 11:07:47 EDT 2002


On Fri, 12 Jul 2002, DeDa wrote:

D> Hi to all, I'm a newbie of Python and I already have a big
D> problem. I read 2
D> bytes from files and I like to convert them into an integer.
D> How can I do
D> it?

struct.unpack(), see
http://www.python.org/doc/current/lib/module-struct.html

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]
http://diveinto.python.ru/ [ru]






More information about the Python-list mailing list