I expected that py3 did not converted the b'...' indication too ?
b'afc76815e3fc429fa9d7'
--
http://mail.python.org/mailman/listinfo/python-list
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
>>> 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
"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
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
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
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
> 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