<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 24, 2016 at 8:21 AM, Michel Desmoulin <span dir="ltr"><<a href="mailto:desmoulinmichel@gmail.com" target="_blank">desmoulinmichel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This actually could be implemented directly in str.replace() without breaking the API by accepting:<br>
<br>
"stuff".replace('a', '')<br>
"stuff".replace(('a', 'b', 'c'), '')<br>
"stuff".replace(('a', 'b', 'c'), ('?', '*', ''))<br></blockquote><div><br></div><div>+1 -- I have found I Need to do this often enough that I've wondered why it's not there.</div><div><br></div><div>making three calls to replace() isn't too bad, but is klunky and has performance issues.</div><div><br></div><div>-CHB</div><div><br></div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R (206) 526-6959 voice<br>7600 Sand Point Way NE (206) 526-6329 fax<br>Seattle, WA 98115 (206) 526-6317 main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>