On 9/8/07, David <[EMAIL PROTECTED]> wrote:
> > The python doesn't supports t1[keyword_index]="XYZhello" (string
> > object assignment is not supported). How do I get to this problem? Any
> > sugguestions?
>
> Build a new string var using slicing. eg:
>
> t1 = t1[:keyword_index] + "XYZhello" + [keyword_index]
>

Typo. Missed a colon. Should be:

t1 = t1[:keyword_index] + "XYZhello" + [keyword_index:]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to