[Python-3000] [Python-3000-checkins] r60376 - in python/branches/py3k: Lib/test/test_float.py Lib/test/test_long.py Objects/stringlib/formatter.h

Aahz aahz at pythoncraft.com
Mon Jan 28 05:50:18 CET 2008

On Mon, Jan 28, 2008, Nick Coghlan wrote:
> I think this checkin goes too far in removing support for the floating 
> point formatting codes from integers. Guido objected to %d working on 
> floats last year, but expected %f and friends to continue to work on 
> integers [1]. This makes sense when you consider that there is no data 
> loss in displaying an integer as a floating point number, while there is 
> a definite potential for data loss when going the other way.

Not true:

>>> repr(float(1234567890123456789012345678901234567890123456789012345678901234567890))

Overall, I could care less what decision gets made, but I think it's
unfair to make the decision on an incorrect argument.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"All problems in computer science can be solved by another level of     
indirection."  --Butler Lampson

More information about the Python-3000 mailing list