How to insert in a string @ a index
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Fri Sep 7 12:44:18 EDT 2007
lolu999 at gmail.com a écrit :
> Hi;
>
> I'm trying to insert XYZ before a keyword in a string.
Then forget about it. Python's strings are immutable.
(snip)
> 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.
More information about the Python-list
mailing list