How to Read Bytes from a file
Hendrik van Rooyen
mail at microcorp.co.za
Fri Mar 2 01:29:00 EST 2007
<gregpinero at gmail.com> wrote:
> Thanks Bart. That's perfect. The other suggestion was to precompute
> count1 for all possible bytes, I guess that's 0-256, right?
0 to 255 inclusive, actually - that is 256 numbers...
The largest number representable in a byte is 255
eight bits, of value 128,64,32,16,8,4,2,1
Their sum is 255...
And then there is zero.
- Hendrik
More information about the Python-list
mailing list