Newbie: Casting Int to string....

Tino Wildenhain tino at wildenhain.de
Fri Mar 2 04:35:57 EST 2001


Hi D.H.


try str() :-)


Digital Hyakugei wrote:
> 
> Ok, pretty simple, no? I can not find out how to do the following...
> 
> i've got a variable:
> 
> aNumber = 1
> 
> Now i have a function
> 
> nntp.stat( aVal )
> 
> where aVal has to be a string.
> 
> I cant do
> 
> nntp.stat( aNumber )
> 
> cuz it expects a string, not an int.
> 
> How, oh how, do i cast an int to a string?
> I'm sure its something that is forehead slapping obvious, but i just cant
> seem to find it...
> 
> Thanks very much!
> jos
> 
> --
> http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list