Mercurial > cpython-lru_cache-weakref
diff Python/dtoa.c @ 53707:13a82a710f19
Issue #5914: Add new C-API function PyOS_string_to_double, to complement
PyOS_double_to_string, and deprecate PyOS_ascii_strtod and PyOS_ascii_atof.
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sun, 03 May 2009 20:33:40 +0000 |
| parents | fe99a562b708 |
| children | 4501b638fc3f |
line wrap: on
line diff
--- a/Python/dtoa.c Sun May 03 19:38:29 2009 +0000 +++ b/Python/dtoa.c Sun May 03 20:33:40 2009 +0000 @@ -61,6 +61,9 @@ * that hasn't been MALLOC'ed, private_mem should only be used when k <= * Kmax. * + * 7. _Py_dg_strtod has been modified so that it doesn't accept strings with + * leading whitespace. + * ***************************************************************/ /* Please send bug reports for the original dtoa.c code to David M. Gay (dmg @@ -1355,6 +1358,7 @@ /* no break */ case 0: goto ret0; + /* modify original dtoa.c so that it doesn't accept leading whitespace case '\t': case '\n': case '\v': @@ -1362,6 +1366,7 @@ case '\r': case ' ': continue; + */ default: goto break2; }
