From: Senthil Kumaran Date: Mon, 9 Aug 2010 08:56:25 +0000 (+0000) Subject: Fix Issue5416 - explain negative value for count in bytes object replace. X-Git-Tag: v3.2a2~397 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77210b4fa9d3e1778549a2fb1790b7bcdba79bf7;p=thirdparty%2FPython%2Fcpython.git Fix Issue5416 - explain negative value for count in bytes object replace. --- diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index fa31a8090f21..4d546105ba52 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -2150,7 +2150,8 @@ PyDoc_STRVAR(replace__doc__, \n\ Return a copy of B with all occurrences of subsection\n\ old replaced by new. If the optional argument count is\n\ -given, only the first count occurrences are replaced."); +positive, only the first count occurrences are replaced. A\n\ +negative value of count replaces all occurences"); static PyObject * bytes_replace(PyBytesObject *self, PyObject *args)