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 cdavid
Recipients cdavid
Date 2009-01-01.07:52:43
SpamBayes Score 1.0110716e-06
Marked as misclassified No
Message-id <1230796367.25.0.681154044554.issue4799@psf.upfronthosting.co.za>
In-reply-to
Content
On windows, with python 2.6,  s = '%s' % float('inf') is 'inf', but s =
'%f' % float('inf') is equal to '1.#INF'.

This patch fixes the inconsistency, by using the code from floatobject.f
format_float into stringobject.c formatfloat. I think it would be better
to use the same underlying implementations for both functions, but it is
not so easy, because format_float cannot fail (return void), whereas
formatfloat can (return error code).
History
Date User Action Args
2009-01-01 07:52:47cdavidsetrecipients: + cdavid
2009-01-01 07:52:47cdavidsetmessageid: <1230796367.25.0.681154044554.issue4799@psf.upfronthosting.co.za>
2009-01-01 07:52:46cdavidlinkissue4799 messages
2009-01-01 07:52:45cdavidcreate