"print int" would be nice

Grant Edwards grante at visi.com
Thu Jan 24 13:08:19 EST 2002


In article <3C4FC93A.7020201 at thomas-guettler.de>, Thomas Guettler wrote:

> Is there a reason why python doesn't convert a int to string 
> automatically?

If you can write a compiler that knows what needs to be done
without being told, then just let it write the program!  The
problem with having the compiler "auto-magically" convert
values from one type to another is that too many times it
guesses wrong about 

  a) Whether a conversion should be done
  b) What conversion to do

You're far better off when _you_ do the conversions, that way
it's obvious that you wanted a conversion.

-- 
Grant Edwards                   grante             Yow!  Hello. Just walk
                                  at               along and try NOT to think
                               visi.com            about your INTESTINES being
                                                   almost FORTY YARDS LONG!!



More information about the Python-list mailing list