[Python-au] Binary help

Richard Jones richardjones at optushome.com.au
Wed Mar 30 02:52:43 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 30 Mar 2005 10:25 am, morgan.lean wrote:
> My coder is having a problem with Pythons Binary functions.
>
> Basically he wants to be able to read individual bits and bytes of a binary
> file then convert them to either ints, strings etc. If anyone knows
> anything please email me at morgan.lean at epiphanygames.com.au.

I suggest asking on python-list (see www.python.org) rather than here - 
python-list has a much larger audience.

Anyway, try the struct module:

  http://docs.python.org/lib/module-struct.html


    Richard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCSfherGisBEHG6TARAmHFAJ97MZ6VDCDntJp/zyAgzEmTu0F3cQCfXlKl
oLpBzxsak2KPjJjakhKV4SY=
=TlXH
-----END PGP SIGNATURE-----



More information about the python-au mailing list