How to recast integer to a string

James hslee911 at yahoo.com
Tue May 9 15:34:05 EDT 2006


Christoph Haas wrote:
> On Tue, May 09, 2006 at 12:17:34PM -0700, James wrote:
> > How to recast an integer to a string?
> >
> > something like
> > n = 5
> > str = str + char(n)
>
> str(n)
>
> Kindly
>  Christoph

In python2,4, I 've got
TypeError: 'str' object is not callable 

J.L




More information about the Python-list mailing list