help with str()
Anton Vredegoor
anton at vredegoor.doge.nl
Sun Apr 18 07:31:27 EDT 2004
Tuxtrax wrote:
>No dice. In every case, I get the following error:
>
>Traceback (most recent call last):
> File "headhunter.py", line 317, in ?
> response, poster = n.xhdr("from",
>first_available_message+"-"+str(last_message))
>TypeError: 'str' object is not callable
Maybe this rings a bell:
Python 2.3.2 (#1, Oct 9 2003, 12:03:29)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more
information.
>>> str(5)
'5'
>>> str = "don't do this"
>>> str(5)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: 'str' object is not callable
>>>
Anton
More information about the Python-list
mailing list