diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-08-09 08:56:25 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-08-09 08:56:25 (GMT) |
commit | 77210b4fa9d3e1778549a2fb1790b7bcdba79bf7 (patch) | |
tree | ab91ad9abfc90ba37155b53aec52586f4b152ed9 /Objects | |
parent | 25803f70fb2fca64081d412e113ea353e3715559 (diff) | |
download | cpython-77210b4fa9d3e1778549a2fb1790b7bcdba79bf7.zip cpython-77210b4fa9d3e1778549a2fb1790b7bcdba79bf7.tar.gz cpython-77210b4fa9d3e1778549a2fb1790b7bcdba79bf7.tar.bz2 |
Fix Issue5416 - explain negative value for count in bytes object replace.
Diffstat (limited to 'Objects')
-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 fa31a80..4d54610 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) |