integer to string?
Jp Calderone
exarkun at intarweb.us
Mon Jun 2 22:39:51 EDT 2003
On Tue, Jun 03, 2003 at 02:15:27AM +0000, Hendrik Reinhold wrote:
> Hello,
>
> I want my answering machine to play a random file for each call.
> The configuration scripts (of capisuite) are in python, so I think I
> am in the right group. :)
>
>
> import random
> from random import randrange
> var1 = randrange(0,9)
> 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. ;)
>
http://python.org/doc/tut/node9.html#SECTION009100000000000000000
> any ideas?
>
> best regards
> Hendrik
>
> PS: (using v2.2.2)
> --
> http://mail.python.org/mailman/listinfo/python-list
--
"The problem is, of course, that not only is economics bankrupt but it has
always been nothing more than politics in disguise ... economics is a form
of brain damage." -- Hazel Henderson
More information about the Python-list
mailing list