[issue33647] Make string.replace accept **kwargs instead of two arguments

2018-05-25 Thread Eitan Adler
Change by Eitan Adler : -- nosy: +eitan.adler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue33647] Make string.replace accept **kwargs instead of two arguments

2018-05-25 Thread Paal Pedersen
New submission from Paal Pedersen : 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' --