Senthil Kumaran <orsent...@gmail.com> added the comment:

I am fine with your proposal, Raymond. When I went about the change the 
docstrings, I did notice that it is not an intentional feature to provide 
negative values in the replace argument. The negative value (-1 as count) was 
being used somewhat as a sentinel value to denote replace-all.

I have no problem in reverting current documentation fix, but as a fix we can 
remove the existing reference of -1 in docstrings of str.replace so that it 
does not cause any confusing, which was the point of the original bug-report.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to