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

"Martin v. Löwis" martin at v.loewis.de
Sun Jan 18 00:20:15 CET 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