s=ascii(hexlify(urandom(10)))

"Martin v. Löwis" martin at v.loewis.de
Sun Jan 18 00:05:10 CET 2009


gert wrote:
> On Jan 17, 9:08 pm, "Martin v. Löwis" <mar... at v.loewis.de> wrote:
>>> I expected that py3 did not converted the b'...' indication too ?
>>> b'afc76815e3fc429fa9d7'
>> You mean, just because you invoked the ascii() builtin, the b
>> prefix should disappear? Re-read the documentation of the
>> ascii() builtin - it probably does something completely different
>> from what you expect it to do.
> 
> s = str(hexlify(urandom(8)))[2:18]

And your question is?



More information about the Python-list mailing list