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.01107e-06
Marked as misclassified No
Message-id <>
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).
Date User Action Args
2009-01-01 07:52:47cdavidsetrecipients: + cdavid
2009-01-01 07:52:47cdavidsetmessageid: <>
2009-01-01 07:52:46cdavidlinkissue4799 messages
2009-01-01 07:52:45cdavidcreate