[docs] Minor doc bug

Jay Dresser jay at jaydresser.us
Fri Jul 22 02:17:19 CEST 2011


http://docs.python.org/py3k/whatsnew/3.2.html#optimizations

    "String to integer conversions now work two “digits” at a time, reducing
the number of division and modulo operations."

String to integer uses multiplication.   Integer to string uses division and
modulo.

I'm not sure what you meant, but since division is more costly than
multiplication, I suspect you meant
    "Integer to string conversions now work two “digits” at a time, reducing
the number of division and modulo operations."
(doing modulo 100 instead of modulo 10)
I could be wrong since the fractional part of floating point numbers would
use division (but not modulo) for string to integer.

-- 
Jay Dresser, jay at jaydresser.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20110721/01b68015/attachment-0001.html>


More information about the docs mailing list