Slice assignment for strings?

Paul Rubin http
Tue May 25 16:56:07 EDT 2004


"Jens Lippmann" <jens-nospam at t-online.de> writes:
> So, my questions are:
> - How do I get it right?
> - If slicing seems to be the favorite way to address substrings, why
>   is it impossible to use it on a left side of an assignment?

You can use the array module for what you're doing.  See the docs.



More information about the Python-list mailing list