Chris Angelico wrote:
This would want to be semantically different from chained
calls, in that a single replace([x,y,z], q) would avoid re-replacing;

+1, this would be REALLY handy!

It's easy to trip yourself up with chained replacements
if you're not careful -- like I did once when escaping
things using &xxx; sequences in XML. If you don't do it
in the right order, you end up escaping some of the &s
you just inserted. :-(

--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to