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

gert gert.cuykens at gmail.com
Sat Jan 17 18:11:48 EST 2009


On Jan 18, 12:05 am, "Martin v. Löwis" <mar... at v.loewis.de> wrote:
> 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?

No question just solution to get rit of b'' :)



More information about the Python-list mailing list