Message85391
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'. |
|
Date |
User |
Action |
Args |
2009-04-04 13:14:27 | mark.dickinson | set | recipients:
+ mark.dickinson, eric.smith |
2009-04-04 13:14:27 | mark.dickinson | set | messageid: <1238850867.72.0.0715678895152.issue5686@psf.upfronthosting.co.za> |
2009-04-04 13:14:26 | mark.dickinson | link | issue5686 messages |
2009-04-04 13:14:25 | mark.dickinson | create | |
|