Concatenating numerical and string attributes

Heather Coppersmith me at privacy.net
Fri Mar 12 06:21:03 EST 2004


On Fri, 12 Mar 2004 01:26:14 -0800 (PST),
dont bother <dontbotherworld at yahoo.com> wrote:

> featurevector = string(1)+ " " + string(index[i]) +
> ":" +string(vector[i])
> However, when I run my program I get this error:

> $Traceback (most recent call last):
>   File "try.py", line 70, in ?
>     featurevector=string(index[i])+string(vector[i])
> TypeError: 'module' object is not callable

"string" is a module.

"str" is a type.

HTH,
Heather

-- 
Heather Coppersmith
That's not right; that's not even wrong. -- Wolfgang Pauli



More information about the Python-list mailing list