]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix Issue5416 - explain negative value for count in bytes object replace.
authorSenthil Kumaran <orsenthil@gmail.com>
Mon, 9 Aug 2010 08:56:25 +0000 (08:56 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Mon, 9 Aug 2010 08:56:25 +0000 (08:56 +0000)
Objects/bytesobject.c

index fa31a8090f21935325bae106432f153fed322293..4d546105ba52d6d61632dca60ff6a8e48fd0cda6 100644 (file)
@@ -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)