python vs ecmascript

Erik Max Francis max at alcyone.com
Fri Nov 16 18:24:51 EST 2001


Peoter Veliki wrote:

> I'm using Python 2.0 at the moment (it is necessary as it is
> integrated
> into another product), perhaps this limitation was removed in later
> versions.  If I try to do this:
> 
> print "integer i = " + i
> 
> it will barf on this and tell me that i is not a string, I must do
> this:

That's because the i is not a separate argument to print.  He was
referring to the case where you write

	print "integer i =", i

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Laws are silent in time of war.
\__/ Cicero
    Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
 An Esperanto reference for English speakers.



More information about the Python-list mailing list