New submission from Paal Pedersen <paal...@gmail.com>: It would be really nice if the python core function string.replace is modifed to accept **kwargs instead of 2 arguments.
then you could just do: kwargs = {'my': 'yours', 'string': 'car'} >>>'this is my string'.replace(kwargs) 'this is your car' ---------- messages: 317672 nosy: paalped priority: normal severity: normal status: open title: Make string.replace accept **kwargs instead of two arguments type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ 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