string replace

Michele Petrazzo michele.petrazzo at TOGLIunipex.it
Sat Jul 1 03:30:36 EDT 2006


johnzenger at gmail.com wrote:
> Check out the .translate method and the string.maketrans documentation.
>  You can use it to delete a list of characters all in one line:
> 

Yes. This is, more or less, what I were looking for.

P.s. Sure, if replace could accept a tuple... :)

Thanks to all,
Michele



More information about the Python-list mailing list