transform list of int in a list of string??

Levente Sandor sandorlevi at yahoo.com
Sat Sep 14 05:12:39 CEST 2002


jubafre at brturbo.com wrote in message news:<mailman.1031945716.2586.python-list at python.org>...
> Traceback (most recent call last):
>   File "C:\Documents and Settings\jubafre\Desktop\montador\teste.py", line 
> 78, in ?
>     t=str(x[i])
> TypeError: 'list' object is not callable

The error message says that a list object in your code is identified
by 'str'. You must use a different name for your list, or the str()
function will no longer be available.
It's generally a good idea to avoid using built-in identifiers for
your own objects.

levi



More information about the Python-list mailing list