Better way to replace/remove characters in a list of strings.

Chris Brat chrisBrat at
Tue Sep 5 22:24:03 CEST 2006


Wouldn't this only cause problems with large lists - for once off
scripts with small lists it doesn't seem like a big issue to me.


Bruno Desthuilliers wrote:
> Chris Brat a écrit :
> > Thanks, thats exactly what I was looking for - very neat.
> >
> Just note that both solutions rebind the name to a newly constructed
> list instead of modifying the original list in place. This is usually
> the RightThing(tm), but sometimes one wants an in-place modification.

More information about the Python-list mailing list