]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
The strop module and test_strop.py believe replace() with a 0 count
authorTim Peters <tim.peters@gmail.com>
Thu, 10 May 2001 00:59:45 +0000 (00:59 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 10 May 2001 00:59:45 +0000 (00:59 +0000)
commitda45d55a6ecff00ca714cbcf66fb2133621ca836
tree7a9702d24d8648deed352c8786a94799e7f3b1fe
parent9c012af3c368e0017b3671d241f6c3e370328232
The strop module and test_strop.py believe replace() with a 0 count
means "replace everything".  But the string module, string.replace()
amd test_string.py believe a 0 count means "replace nothing".
"Nothing" wins, strop loses.
Bugfix candidate.
Lib/test/test_strop.py
Modules/stropmodule.c