This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients LambertDW, ajaksu2, dmajnemer, docs@python, georg.brandl, orsenthil, rhettinger, terry.reedy
Date 2010-08-12.03:36:13
SpamBayes Score 0.0014328872
Marked as misclassified No
Message-id <1281584175.95.0.0403202752956.issue5416@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-08-12 03:36:16orsenthilsetrecipients: + orsenthil, georg.brandl, rhettinger, terry.reedy, ajaksu2, LambertDW, dmajnemer, docs@python
2010-08-12 03:36:15orsenthilsetmessageid: <1281584175.95.0.0403202752956.issue5416@psf.upfronthosting.co.za>
2010-08-12 03:36:14orsenthillinkissue5416 messages
2010-08-12 03:36:13orsenthilcreate