Richard D. Moores
rdmoores at gmail.com
Sun Aug 8 07:57:39 CEST 2010
On Sat, Aug 7, 2010 at 17:00, Alan Gauld <alan.gauld at btinternet.com> wrote:
> "Richard D. Moores" <rdmoores at gmail.com> wrote
>> Yes, the number of bytes seems to <= 6, or is it?:
> still ok - the l and t at the ends are valid characters so Python
> prints the letter
So if os.urandom() had been written so that it printed only hex,
b'l\xbb\xae\xb7\x0ft' would have been
b'\x6c\xbb\xae\xb7\x0f\x74' , right?
Thanks very much for that, Alan.
How were we supposed to know that all the hexes have 2 digits? How did you?
More information about the Tutor