On Mon, Oct 24, 2016 at 8:21 AM, Michel Desmoulin <desmoulinmic...@gmail.com > wrote:
> This actually could be implemented directly in str.replace() without > breaking the API by accepting: > > "stuff".replace('a', '') > "stuff".replace(('a', 'b', 'c'), '') > "stuff".replace(('a', 'b', 'c'), ('?', '*', '')) > +1 -- I have found I Need to do this often enough that I've wondered why it's not there. making three calls to replace() isn't too bad, but is klunky and has performance issues. -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/