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

gert gert.cuykens at gmail.com
Sat Jan 17 16:34:14 EST 2009


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]



More information about the Python-list mailing list