Commit 77210b4f authored by Senthil Kumaran's avatar Senthil Kumaran

Fix Issue5416 - explain negative value for count in bytes object replace.

parent 25803f70
...@@ -2150,7 +2150,8 @@ PyDoc_STRVAR(replace__doc__, ...@@ -2150,7 +2150,8 @@ PyDoc_STRVAR(replace__doc__,
\n\ \n\
Return a copy of B with all occurrences of subsection\n\ Return a copy of B with all occurrences of subsection\n\
old replaced by new. If the optional argument count is\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 * static PyObject *
bytes_replace(PyBytesObject *self, PyObject *args) bytes_replace(PyBytesObject *self, PyObject *args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment