From 77210b4fa9d3e1778549a2fb1790b7bcdba79bf7 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Mon, 9 Aug 2010 08:56:25 +0000 Subject: [PATCH] Fix Issue5416 - explain negative value for count in bytes object replace. --- Objects/bytesobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index fa31a8090f2..4d546105ba5 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)