Mark Dickinson added the comment: Updated patch. I've also taken the opportunity to increase MAX_ABS_EXP, which fixes the following long-standing bug (not that anyone has noticed it in the last 4 years, apparently):
>>> s = '0.' + '0'*19999 + '1e+20000' >>> float(s) # should be 1.0 0.1 (The new limit on the number of digits means that the clipping of the exponent can no longer result in incorrect results from strtod.) Unlike the previous patch, I'm reasonably confident in this one. :-) I'll plan to apply it soon, though it probably won't make 3.4 beta 1. ---------- Added file: http://bugs.python.org/file32817/limit_dtoa_string_v2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19638> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com