Eric Smith e...@trueblade.com added the comment:
I believe this is a duplicate of issue 4482. I'm closing this and will
add everyone who is nosy on this to be nosy on 4482.
--
resolution: - duplicate
status: open - closed
___
Python tracker
Christoph Zwerschke c...@online.de added the comment:
This is a related problem on Windows:
'%g' % 1e400 - '1.#INF'
'%.f' % 1e400 -- '1'
--
nosy: +cito
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4799
Mark Dickinson dicki...@gmail.com added the comment:
Assigning to Eric, at his request.
--
assignee: marketdickinson - eric.smith
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4799
Changes by Mark Dickinson dicki...@gmail.com:
--
assignee: - marketdickinson
nosy: +marketdickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4799
___
New submission from Cournapeau David da...@ar.media.kyoto-u.ac.jp:
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