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 eric.smith
Recipients eric.smith
Date 2008-03-10.11:05:21
SpamBayes Score 0.08311052
Marked as misclassified No
Message-id <1205147124.28.0.679572132371.issue2264@psf.upfronthosting.co.za>
In-reply-to
Content
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:
>>> format(3e200, '')
'3e+200'

As currently implemented, the code just maps the empty format specifier
to 'g', and does not add the additional behavior specfied in the PEP.
History
Date User Action Args
2008-03-10 11:05:24eric.smithsetspambayes_score: 0.0831105 -> 0.08311052
recipients: + eric.smith
2008-03-10 11:05:24eric.smithsetspambayes_score: 0.0831105 -> 0.0831105
messageid: <1205147124.28.0.679572132371.issue2264@psf.upfronthosting.co.za>
2008-03-10 11:05:23eric.smithlinkissue2264 messages
2008-03-10 11:05:22eric.smithcreate