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 eric.smith, mark.dickinson, rhettinger
Date 2009-10-24.17:04:39
SpamBayes Score 1.7058035e-09
Marked as misclassified No
Message-id <1256403881.05.0.986120622858.issue7117@psf.upfronthosting.co.za>
In-reply-to
Content
I think the next step on my side is to remove _PyOS_double_to_string,
and make all of the internal code call PyOS_double_to_string. The
distinction is that _PyOS_double_to_string gets passed a buffer and
length, but  PyOS_double_to_string returns allocated memory that must be
freed. David Gay's code (_Py_dg_dtoa) returns allocated memory, so
that's the easiest interface to propagate internally.

That's the approach we used in the py3k branch. I'll start work on it.
So Mark's work should be mostly config stuff and hooking up Gay's code
to PyOS_double_to_string. I think it will basically match the py3k version.

The existing _PyOS_double_to_string will become the basis for the
fallback code for use when PY_NO_SHORT_FLOAT_REPR is defined (and it
will then be renamed PyOS_double_to_string and have its signature
changed to match).
History
Date User Action Args
2009-10-24 17:04:41eric.smithsetrecipients: + eric.smith, rhettinger, mark.dickinson
2009-10-24 17:04:41eric.smithsetmessageid: <1256403881.05.0.986120622858.issue7117@psf.upfronthosting.co.za>
2009-10-24 17:04:39eric.smithlinkissue7117 messages
2009-10-24 17:04:39eric.smithcreate