New internal string format in 3.3

Oscar Benjamin oscar.j.benjamin at gmail.com
Sun Aug 19 12:49:52 EDT 2012


On Aug 19, 2012 5:22 PM, <wxjmfauth at gmail.com> wrote
>
> Py 3.2.3
> >>> timeit.timeit("('aœ€'*100).replace('a', 'œ€é')")
> 4.99396356635981
>
> Py 3.3b2
> >>> timeit.timeit("('aœ€'*100).replace('a', 'œ€é')")
> 7.560455708007855
>
> Maybe, not so demonstative. It shows at least, we
> are far away from the 10-30% "annouced".
>
> >>> 7.56 / 5
> 1.512
> >>> 5 / (7.56 - 5) * 100
> 195.31250000000003

Maybe the problem is that your understanding of a percentage differs from
that of others.

I make that a 51% increase. I don't really understand what your 195 figure
is demonstrating.

Oscar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120819/bdbb4f21/attachment.html>


More information about the Python-list mailing list