How to convert binary file data?
Nick Perkins
nperkins7 at home.com
Wed May 9 02:11:09 EDT 2001
...buf=x.read (1)
>>># this is what's in buf
... buf
'\xe0'
That is indeed one byte, just what you wanted.
>>> ord('\xe0')
224
More information about the Python-list
mailing list