Integer como array de bytes - Python



   AUTOR PREGUNTA

Publicado 22 junio 2014 - 23:09

¿Cómo puedo tratar un Integer como un array de bytes en Python?


¿Tienes la misma pregunta? Yo también

 

Publicado 23 junio 2014 - 05:31

Con el siguiente código puedes hacer lo que necesitas:
signum = status & 0xff
exitstatus = (status & 0xff00) >> 8

   AUTOR PREGUNTA

Publicado 23 junio 2014 - 05:53

Gracias Jhony