[issue9980] str(float) failure

Kiriakos Vlahos report at bugs.python.org
Wed Sep 29 23:13:05 CEST 2010

Kiriakos Vlahos <pyscripter at gmail.com> added the comment:

Let me that add that it is impossible to fully unit test for the correctness of the str(float).  I only found out by accident, because one of the users bumped into such a case.  I tried to find a pattern in the misbehaved cased and it was rather difficult.  Here is what I got but it is not conclusive

-  If the number has decimal points it prints correctly. Problems only occur with xxxxxx.0
-  More specifically they only occur with xxxxx1.0
-  Small numbers (less than 10000) print OK.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list