[issue9009] Improve quality of Python/dtoa.c

Mark Dickinson report at bugs.python.org
Sat Jun 19 12:21:34 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

r82080: Whitespace fixes.
r82081: In strtod, simplify the computation of the initial approximation.
r82082: Fix typo introduced in r82025 (I think);  this was preventing
   a shortcut from being taken.

r82087: Simplify the ratio function.  The previous ratio function (actually, b2d), aborted if the numerator was zero, and the current code ends up requiring special cases for zero as a result of this.  That restriction is now removed, which will allow further simplifications (to come) in strtod.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9009>
_______________________________________


More information about the Python-bugs-list mailing list