New submission from Paal Pedersen <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue33647>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com