s=ascii(hexlify(urandom(10)))
Pierre-Alain Dorange
pdorange at pas-de-pub-merci.mac.com
Sat Jan 17 18:11:52 EST 2009
"Martin v. Löwis" <martin at v.loewis.de> wrote:
> > On Jan 17, 9:08 pm, "Martin v. Löwis" <mar... at v.loewis.de> 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 probably does something completely different
> >> from what you expect it to do.
> >
> > s = str(hexlify(urandom(8)))[2:18]
>
> And your question is?
The answer is probably 23.
--
Pierre-Alain Dorange
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
More information about the Python-list
mailing list