performing action on set of charecters

jeff gregadelliot at hotmail.com
Thu Jan 22 10:51:09 EST 2004


hiya,

Ive a load of binary in a file. Its 3 bit (2^3) and i wanna convert it
to an integer.

ive tried using theintergar = string.atoi(thebinary, 2), but that
doesnt take it as 3 bit binary

it has no spaces it it, so im a bit stuck as to how to do this with
python,

cheers

greg



More information about the Python-list mailing list