On Sun, Oct 6, 2013 at 8:32 PM, Peter Pearson <ppearson@nowhere.invalid> wrote: > 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.
really? I would expect that \x66 = 0110 0110 and f = 1111 > > -- > To email me, substitute nowhere->spamcop, invalid->net. > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list