[issue2264] empty specifier for float.__format__ does not always print at least one decimal digit

2008-03-17 Thread Eric Smith
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 __

[issue2264] empty specifier for float.__format__ does not always print at least one decimal digit

2008-03-16 Thread Eric Smith
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

[issue2264] empty specifier for float.__format__ does not always print at least one decimal digit

2008-03-10 Thread Eric Smith
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: