How to recast integer to a string
Christoph Haas
email at christoph-haas.de
Tue May 9 16:01:25 EDT 2006
On Tue, May 09, 2006 at 12:34:05PM -0700, James wrote:
>
> 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
What I meant was:
string_from_number = str(n)
Kindly
Christoph
More information about the Python-list
mailing list