Message117656
| Author |
Kiriakos.Vlahos |
| Recipients |
Kiriakos.Vlahos, brian.curtin, eric.smith, loewis, mark.dickinson, sjmachin, skrah |
| Date |
2010年09月29日.21:13:03 |
| SpamBayes Score |
0.0047774455 |
| Marked as misclassified |
No |
| Message-id |
<1285794785.71.0.95989950332.issue9980@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|