Allow str.replace
's 'count' to be a keyword argument
#106487
Labels
str.replace
's 'count' to be a keyword argument
#106487
Feature or enhancement
Allow the count argument of
str.replace
to be a keyword to better describe its use.Pitch
str.replace
takesold
andnew
strings as parameters, and an optionalcount
parameter:https://docs.python.org/3/library/stdtypes.html#str.replace
However,
count
cannot be a keyword argument:It would be more explicit if the
count
parameter could also be a keyword, so there's no doubt about its meaning.Previous discussion
Suggested by @treyhunner at https://mastodon.social/@treyhunner/110664375381530126
Linked PRs
str.replace
to be a keyword #106488The text was updated successfully, but these errors were encountered: