Chris Jerdonek <chris.jerdo...@gmail.com> added the comment:

Another API option is to use str.replace's existing arguments: str.replace(old, 
new[, count]). In addition to "old" and "new" being strings, they could also be 
lists of strings of equal length, similar to how str.maketrans() can accept two 
strings of equal length. Then, like maketrans(), each string in "old" would be 
replaced by the corresponding string at the same position in "new."

----------
nosy: +chris.jerdonek

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33647>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to