integer to string?
Erik Max Francis
max at alcyone.com
Mon Jun 2 23:29:02 EDT 2003
Hendrik Reinhold wrote:
> capisuite.audio_send(call,my_path+var1+".la")
>
> I guess that var1 is an integer and that I cannot concat the var1
> with the path variable and the file extension. I couldn´t find out how
> to convert the variables (int to string), and phyton.org was not very
> usefull for me, a python newbie. ;)
Easy, try something like
capisuite.audio_send(call, my_path + str(var1) + ".la")
or
capisuite.audio_send(call, "%s%d%s" % (my_path, var1, ".la")
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ God will forgive me; that's his business.
\__/ Heinrich Heine
More information about the Python-list
mailing list