On Sun, 05 Feb 2006 21:07:23 -0800, Alex Martelli wrote: > Chason Hayes <[EMAIL PROTECTED]> wrote: > ... >> easily in c/c++ but I need to do it in python. I am not sure how to read >> and evaluate the binary value of a byte in a long string when it is a non >> printable ascii value in python. > > If you have a bytestring (AKA plain string) s, the binary value of its > k-th byte is ord(s[k]). > > > Alex
Thank you very much, That is the function that I was looking for to write a filter. Chason -- http://mail.python.org/mailman/listinfo/python-list