[issue9009] Improve quality of Python/dtoa.c
Mark Dickinson
report at bugs.python.org
Wed Jun 16 20:18:59 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
A couple of preparatory commits:
r82025: In _Py_dg_strtod, 'e' now represents the adjusted exponent rather than the base exponent; that is, the input value is of the form +- m * 10**e with 0.1 <= m < 1.0. It's easier to produce such an 'e' from the parsing stage if we care about detecting overflow and underflow.
r82031: Update the s2b function: remove a premature optimization in order to make s2b more general and its correctness more easily verifiable; alter the way that the input string is parsed so that it doesn't depend on nd0 being in the range [0, nd].
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9009>
_______________________________________
More information about the Python-bugs-list
mailing list