> 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. -- http://mail.python.org/mailman/listinfo/python-list
> 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. -- http://mail.python.org/mailman/listinfo/python-list