Strange extra f added to bytes object

Peter Pearson ppearson at nowhere.invalid
Sun Oct 6 20:32:34 EDT 2013


On Sun, 6 Oct 2013 18:47:38 -0400, Robert Jackson wrote:
> --089e0160b7be912b9e04e81a52b2
> Content-Type: text/plain; charset=ISO-8859-1
>
> I am very new to python
[snip]

Welcome.


> . . .  I sometimes find the
> when I construct the bytes object to write it adds an extra f to the first
> byte.
>
> For example if I have b'\x03\x66\x02\x01\xaa\xbb' it evaluates
> to b'\x03f\x02\x01\xaa\xbb', which doesn't even seem valid.
>
> Can anyone shine some light this?

"f" is the same as \x66; nothing has been changed.

-- 
To email me, substitute nowhere->spamcop, invalid->net.



More information about the Python-list mailing list