Eric Smith [EMAIL PROTECTED] added the comment:
Fixed checked in as r61434.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2264
__
Eric Smith [EMAIL PROTECTED] added the comment:
I think the best way to handle this is to add a new format code to
PyOS_ascii_formatd, which implements this behavior. There can be no
backward compatibility issues, because PyOS_ascii_formatd currently
ensures its format specifier type code is in
New submission from Eric Smith [EMAIL PROTECTED]:
PEP 3101 specifies that the empty format presentation type for float
will always print at least one digit after the decimal point, but it
does not do that if the number is output with an exponent:
works:
format(3.0, '')
'3.0'
fails: