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 mark.dickinson
Recipients eric.smith, mark.dickinson
Date 2009-04-04.13:14:25
SpamBayes Score 2.677164e-11
Marked as misclassified No
Message-id <1238850867.72.0.0715678895152.issue5686@psf.upfronthosting.co.za>
In-reply-to
Content
I don't really see this as a bug in the behaviour.  I'd always understood 
the purpose of the "at least one digit after the decimal" to be to make it 
possible to visually distinguish floats and integers, in the same way that 
repr and str already do.

>>> repr(1e100)
'1e+100'
>>> repr(1e5)
'100000.0'

If an exponent's present then the string's already clearly not an integer, 
so there's no need for the '.0'.
History
Date User Action Args
2009-04-04 13:14:27mark.dickinsonsetrecipients: + mark.dickinson, eric.smith
2009-04-04 13:14:27mark.dickinsonsetmessageid: <1238850867.72.0.0715678895152.issue5686@psf.upfronthosting.co.za>
2009-04-04 13:14:26mark.dickinsonlinkissue5686 messages
2009-04-04 13:14:25mark.dickinsoncreate