Literal Escaped Octets

Chason Hayes chasonh at hotmail.com
Mon Feb 6 11:48:34 EST 2006


On Sun, 05 Feb 2006 21:07:23 -0800, Alex Martelli wrote:

> Chason Hayes <chasonh at hotmail.com> 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




More information about the Python-list mailing list