[issue39304] Don't accept a negative number for the count argument in str.replace(old, new[, count])

Karthikeyan Singaravelan report at bugs.python.org
Sat Jan 11 11:52:24 EST 2020


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Thanks for the details. I looked into the tests for this behavior too and agree it's a tested behavior. issue5416 already had similar discussion and the documentation was committed to be later reverted upon Raymond's suggestion. So I will leave it to him.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39304>
_______________________________________


More information about the Python-bugs-list mailing list