"print int" would be nice

Kragen Sitaker kragen at pobox.com
Tue Jan 29 11:15:43 EST 2002


Thomas Guettler <st-newsgroups at thomas-guettler.de> writes:
> 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

Python generally does not convert types automatically.  This is my
favorite feature of Python.  Bugs that gave me wrong answers in Perl
give me exceptions in Python.




More information about the Python-list mailing list