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

"Martin v. Löwis" martin at v.loewis.de
Sat Jan 17 15:08:39 EST 2009


> 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.

Regards,
Martin



More information about the Python-list mailing list