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

gert gert.cuykens at gmail.com
Sat Jan 17 18:37:58 EST 2009


On Jan 18, 12:20 am, "Martin v. Löwis" <mar... at v.loewis.de> wrote:
> >>> s = str(hexlify(urandom(8)))[2:18]
> >> And your question is?
>
> > No question just solution to get rit of b'' :)
>
> Ah. hexlify(urandom(8)).decode('ascii')

Ok that one looks better then mine :)



More information about the Python-list mailing list