Re: 4 bytes to int

2007-03-18 Thread Gabriel Genellina
En Sun, 18 Mar 2007 23:04:44 -0300, Andres Martinelli <[EMAIL PROTECTED]> escribió: > My simple question is: > I have an array of 4 bytes, and I want to convert it to the int they > form. You can use the struct module: py> struct.unpack("i", "\x00\x00\x01\x00") (65536,) That's good if you h

4 bytes to int

2007-03-18 Thread Andres Martinelli
Hello. Im new in the list, and really new in python. My simple question is: I have an array of 4 bytes, and I want to convert it to the int they form. How do you do that? :s I've looking throw the web, but with no success. Hope you can help. Andres M. -- http://mail.python.org/mailman/listinfo