"print int" would be nice
Alex Martelli
aleax at aleax.it
Thu Jan 24 04:01:42 EST 2002
"Thomas Guettler" <st-newsgroups at thomas-guettler.de> wrote in message
news:3C4FC93A.7020201 at thomas-guettler.de...
> Is there a reason why python doesn't convert a int to string
> automatically? Would be nice this would work:
>
> i=2
> print "int: " + i
No, it would not be nice: it would be a nightmare if Python
abandoned precision, simplicity, regularity and strong (dynamic)
type checking in pursuit of such "convenience".
Visual Basic implemented this horrid idea up to version 6, and
is now going through the serious throes and pains of backwards
incompatible language change to take this and other horrors
away in the current version (version 7, aka VB .NET).
Alex
More information about the Python-list
mailing list