summaryrefslogtreecommitdiff
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-08-09 08:56:25 +0000
committerSenthil Kumaran <orsenthil@gmail.com>2010-08-09 08:56:25 +0000
commit77210b4fa9d3e1778549a2fb1790b7bcdba79bf7 (patch)
treeab91ad9abfc90ba37155b53aec52586f4b152ed9 /Objects/bytesobject.c
parent25803f70fb2fca64081d412e113ea353e3715559 (diff)
downloadcpython-git-77210b4fa9d3e1778549a2fb1790b7bcdba79bf7.tar.gz
Fix Issue5416 - explain negative value for count in bytes object replace.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index fa31a8090f..4d546105ba 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)