[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r72165. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Pytho

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Mark Dickinson added the comment: Here's the patch that actually removes the %f -> %g switch. -- Added file: http://bugs.python.org/file13829/issue5859_stage2.patch ___ Python tracker __

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Eric Smith
Eric Smith added the comment: The patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Mark Dickinson added the comment: No new test failures on Linux or OS X, with or without the fallback code. I've committed this in r72161. -- ___ Python tracker ___ ___

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-05-01 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch which doesn't fix the '%f' -> '%g' switch, but paves the way for that switch by getting rid of the fixed-size buffers in formatfloat in unicodeobject.c, and in the fallback version of PyOS_double_to_string. -- keywords: +patch Added file:

[issue5859] Remove implicit '%f' -> '%g' switch from float formatting.

2009-04-27 Thread Mark Dickinson
New submission from Mark Dickinson : Currently, Python switches from %f to %g formatting at 1e50. This applies both to the old-style percent formatting, and to the newer PEP 3101-style formatting: >>> '%f' % 2.**166 '93536104789177786765035829293842113257979682750464.00' >>> '%f' % 2.**16