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

2009-01-18 Thread gert
I expected that py3 did not converted the b'...' indication too ? b'afc76815e3fc429fa9d7' -- http://mail.python.org/mailman/listinfo/python-list

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

2009-01-17 Thread gert
On Jan 18, 12:20 am, "Martin v. Löwis" 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 :) -- http://mail.python.org/mailman/listinfo/pytho

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

2009-01-17 Thread Martin v. Löwis
>>> 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 -- http://mail.python.org/mailman/listinfo/python-list

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

2009-01-17 Thread Pierre-Alain Dorange
"Martin v. Löwis" wrote: > > On Jan 17, 9:08 pm, "Martin v. Löwis" 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 documentati

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

2009-01-17 Thread gert
On Jan 18, 12:05 am, "Martin v. Löwis" wrote: > gert wrote: > > On Jan 17, 9:08 pm, "Martin v. Löwis" 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

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

2009-01-17 Thread Martin v. Löwis
gert wrote: > On Jan 17, 9:08 pm, "Martin v. Löwis" 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() buil

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

2009-01-17 Thread gert
On Jan 17, 9:08 pm, "Martin v. Löwis" 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 prob

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

2009-01-17 Thread Martin v. Löwis
> 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 e