[issue1716] String format operator '%i' fails for large floats

2008-11-13 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > I think in 2.6 we can't change this, I'm not sure when it happened, but it looks like this *was* fixed for 2.6. Closing. -- nosy: +marketdickinson resolution: -> fixed status: open -> closed _

[issue1716] String format operator '%i' fails for large floats

2007-12-31 Thread Guido van Rossum
Guido van Rossum added the comment: On the one hand, if you want to format a float like that, you should use "%.0f". On the other hand, this should either consistently fail or succeed, not depending on how large the float is. I think in 2.6 we can't change this, but in 3.0, I propose that all t

[issue1716] String format operator '%i' fails for large floats

2007-12-31 Thread Christopher Tur Lesniewski-Laas
New submission from Christopher Tur Lesniewski-Laas: To reproduce: >>> '%i' % 12345678901.0 TypeError: int argument required Contrast with: >>> '%i' % 1234567890.0 '1234567890' Previous experience led me to expect that the '%i' format code would work for all numerical types. Admittedly, there'