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

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


>>> 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')

Regards,
Martin



More information about the Python-list mailing list