summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-08-09 09:02:18 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-08-09 09:02:18 (GMT)
commita3aee5377611a279e6e8152d8c867c6f07c84f08 (patch)
tree016c3c8e0d4984ba05c085604e79d403ba871015
parentb61d5c9758d601781bf99b9d9462a485078ca624 (diff)
downloadcpython-a3aee5377611a279e6e8152d8c867c6f07c84f08.zip
cpython-a3aee5377611a279e6e8152d8c867c6f07c84f08.tar.gz
cpython-a3aee5377611a279e6e8152d8c867c6f07c84f08.tar.bz2
Merged revisions 83880 via svnmerge from
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. ........
-rw-r--r--Objects/bytesobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 417bc48..5a45136 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -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)