"print int" would be nice
Justin Sheehy
justin at iago.org
Thu Jan 24 10:53:23 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?
It would be terrible. That sort of thing is one of the reasons I get
such a dirty feeling working with a certain other P-language.
> Would be nice this would work:
>
> i=2
> print "int: " + i
How about either of these:
print "int: %s" % i
print "int: ", i
-Justin
More information about the Python-list
mailing list