mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Revert the doc change done in r83880. str.replace with negative count value is not a feature.
This commit is contained in:
parent
079ce54efe
commit
9a9dd1c140
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue