[Tutor] About Python Module to Process Bytes

Michelle Meiduo Wu wumeid at hotmail.com
Wed Aug 5 05:51:28 CEST 2015

I think this works for me!
Thanks a lot,Michelle

> From: dyoo at hashcollision.org
> Date: Tue, 4 Aug 2015 12:12:20 -0700
> Subject: Re: [Tutor] About Python Module to Process Bytes
> To: wumeid at hotmail.com
> CC: tutor at python.org
> On Tue, Aug 4, 2015 at 9:26 AM, Michelle Meiduo Wu <wumeid at hotmail.com> wrote:
> > Hi there,
> > I'd like to find some python module to easily process bytes array data, like encoding different types of data (char, long, short, float, etc) into a same bytes array. I checked Python built-in library and there are bytes and bytearray types which don't provide enough functions for processing bytes easily.
> > Does anybody know if there is other convenient module available for processing bytes?
> The 'struct' module is probably what you're looking for.  See:
>     https://docs.python.org/3.5/library/struct.html
> Let us know if you have any questions with it.  Good luck.

More information about the Tutor mailing list