]> granicus.if.org Git - python/commitdiff
Merged revisions 83880 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Mon, 9 Aug 2010 09:02:18 +0000 (09:02 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Mon, 9 Aug 2010 09:02:18 +0000 (09:02 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83880 | senthil.kumaran | 2010-08-09 14:26:25 +0530 (Mon, 09 Aug 2010) | 3 lines

  Fix Issue5416 - explain negative value for count in bytes object replace.
........

Objects/bytesobject.c

index 417bc48c9ceb5a2cf1d01b4b07b33b1df7554c7f..5a45136537061dcce30d6ea7186ecedb9869af69 100644 (file)
@@ -2557,7 +2557,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)