[New-bugs-announce] [issue33647] Make string.replace accept **kwargs instead of two arguments
Paal Pedersen
report at bugs.python.org
Fri May 25 08:52:17 EDT 2018
New submission from Paal Pedersen <paalped at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33647>
_______________________________________
More information about the New-bugs-announce
mailing list