Kaydet (Commit) 9a9dd1c1 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Revert the doc change done in r83880. str.replace with negative count value is not a feature.

üst 079ce54e
...@@ -2131,8 +2131,7 @@ PyDoc_STRVAR(replace__doc__, ...@@ -2131,8 +2131,7 @@ 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\
positive, only the first count occurrences are replaced. A\n\ given, only first count occurances are replaced.");
negative value of count replaces all occurrences");
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