> If you are reading arbitrary bytes then it will likely not always "look" > like integers. What you probably meant is: > > for i in data: > print "%d, " % ord(i) That's it! :-) Thanks a lot.