diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-08-09 08:56:25 +0000 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-08-09 08:56:25 +0000 |
commit | 77210b4fa9d3e1778549a2fb1790b7bcdba79bf7 (patch) | |
tree | ab91ad9abfc90ba37155b53aec52586f4b152ed9 /Objects/bytesobject.c | |
parent | 25803f70fb2fca64081d412e113ea353e3715559 (diff) | |
download | cpython-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.c | 3 |
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) |