This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients MrJean1, duaneb, eric.smith, facundobatista, mark.dickinson, riq
Date 2009-05-12.12:26:34
SpamBayes Score 2.503553e-14
Marked as misclassified No
Message-id <1242131197.14.0.262941682748.issue2813@psf.upfronthosting.co.za>
In-reply-to
Content
From the code:

/* assume %f produces at most (L)DBL_DIG 
   digits before and after the decimal
   point, plus the latter plus a sign */

This is not correct. DBL_DIG is 15 on my x86 Linux machine.    
printf("%.*f\n", DBL_DIG, 1e20) produces a string that's 37 characters
long. It might be best to use PyOS_double_to_string instead of snprintf,
although we don't support long double there. I'm not sure long double
support is all that important in practice (for Python), though.

It would be easier to review this if the %p change weren't also
included. That's looks like a good change, but it's a separate issue.

unicodeobject.c should also be modified. In 3.x, it's unicodeobject.c
and bytesobject.c that need to work.
History
Date User Action Args
2009-05-12 12:26:37eric.smithsetrecipients: + eric.smith, facundobatista, mark.dickinson, MrJean1, duaneb, riq
2009-05-12 12:26:37eric.smithsetmessageid: <1242131197.14.0.262941682748.issue2813@psf.upfronthosting.co.za>
2009-05-12 12:26:35eric.smithlinkissue2813 messages
2009-05-12 12:26:35eric.smithcreate