newbie question: converting integer to string

Erik Max Francis max at alcyone.com
Sat Sep 22 14:15:59 EDT 2001


Ignacio Vazquez-Abrams wrote:

> On Sat, 22 Sep 2001 adina_levin at mindspring.com wrote:
>
> > how can I generate a string representation of num?
> 
> `num`

str(num) would probably be more appropriate than repr(num) if, say, num
were a long.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ If you can't fight and you can't flee, flow.
\__/ Robert Elliot
    Computer science / http://www.alcyone.com/max/reference/compsci/
 A computer science reference.



More information about the Python-list mailing list