On Fri, Mar 07, 2014 at 11:38:34AM +1100, Chris Angelico wrote:
Hmm. Is the rounding done by float.__str__() an attractive nuisance?
It's not rounding precisely. Starting in Python 3.1, the float __repr__ will display the shortest decimal string that doesn't change the float's value.
Reading the issue tracker history for this change is informative:
To the guys who worked on that, I take my hat off to you all.