On Tue, Oct 25, 2016 at 9:11 AM, Nathan Schneider <neatn...@gmail.com> wrote:
> What would be the expected behavior of "aabbccdd".replace(('a', 'aa'), ('x',
> 'y'))? It's not obvious to me whether longer replacement strings ('aa') or
> earlier replacement strings ('a') should take priority.

I'm actually not sure, so I would look at prior art. But in any case,
this is a question you can't even ask until replace() accepts multiple
arguments. Hence I'm +1 on the notion of simultaneous replacements
being supported.

ChrisA
_______________________________________________
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