Commit fcdaaa90 authored by Senthil Kumaran's avatar Senthil Kumaran

merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind...

merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.
parents 114f0e49 53516a82
...@@ -1102,7 +1102,7 @@ PyDoc_STRVAR(find__doc__, ...@@ -1102,7 +1102,7 @@ PyDoc_STRVAR(find__doc__,
"B.find(sub[, start[, end]]) -> int\n\ "B.find(sub[, start[, end]]) -> int\n\
\n\ \n\
Return the lowest index in B where subsection sub is found,\n\ Return the lowest index in B where subsection sub is found,\n\
such that sub is contained within s[start,end]. Optional\n\ such that sub is contained within B[start,end]. Optional\n\
arguments start and end are interpreted as in slice notation.\n\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
...@@ -1196,7 +1196,7 @@ PyDoc_STRVAR(rfind__doc__, ...@@ -1196,7 +1196,7 @@ PyDoc_STRVAR(rfind__doc__,
"B.rfind(sub[, start[, end]]) -> int\n\ "B.rfind(sub[, start[, end]]) -> int\n\
\n\ \n\
Return the highest index in B where subsection sub is found,\n\ Return the highest index in B where subsection sub is found,\n\
such that sub is contained within s[start,end]. Optional\n\ such that sub is contained within B[start,end]. Optional\n\
arguments start and end are interpreted as in slice notation.\n\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
......
...@@ -1269,7 +1269,7 @@ PyDoc_STRVAR(find__doc__, ...@@ -1269,7 +1269,7 @@ PyDoc_STRVAR(find__doc__,
"B.find(sub[, start[, end]]) -> int\n\ "B.find(sub[, start[, end]]) -> int\n\
\n\ \n\
Return the lowest index in B where substring sub is found,\n\ Return the lowest index in B where substring sub is found,\n\
such that sub is contained within s[start:end]. Optional\n\ such that sub is contained within B[start:end]. Optional\n\
arguments start and end are interpreted as in slice notation.\n\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
...@@ -1308,7 +1308,7 @@ PyDoc_STRVAR(rfind__doc__, ...@@ -1308,7 +1308,7 @@ PyDoc_STRVAR(rfind__doc__,
"B.rfind(sub[, start[, end]]) -> int\n\ "B.rfind(sub[, start[, end]]) -> int\n\
\n\ \n\
Return the highest index in B where substring sub is found,\n\ Return the highest index in B where substring sub is found,\n\
such that sub is contained within s[start:end]. Optional\n\ such that sub is contained within B[start:end]. Optional\n\
arguments start and end are interpreted as in slice notation.\n\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
......
...@@ -7660,7 +7660,7 @@ PyDoc_STRVAR(find__doc__, ...@@ -7660,7 +7660,7 @@ PyDoc_STRVAR(find__doc__,
"S.find(sub[, start[, end]]) -> int\n\ "S.find(sub[, start[, end]]) -> int\n\
\n\ \n\
Return the lowest index in S where substring sub is found,\n\ Return the lowest index in S where substring sub is found,\n\
such that sub is contained within s[start:end]. Optional\n\ such that sub is contained within S[start:end]. Optional\n\
arguments start and end are interpreted as in slice notation.\n\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
...@@ -8587,7 +8587,7 @@ PyDoc_STRVAR(rfind__doc__, ...@@ -8587,7 +8587,7 @@ PyDoc_STRVAR(rfind__doc__,
"S.rfind(sub[, start[, end]]) -> int\n\ "S.rfind(sub[, start[, end]]) -> int\n\
\n\ \n\
Return the highest index in S where substring sub is found,\n\ Return the highest index in S where substring sub is found,\n\
such that sub is contained within s[start:end]. Optional\n\ such that sub is contained within S[start:end]. Optional\n\
arguments start and end are interpreted as in slice notation.\n\ arguments start and end are interpreted as in slice notation.\n\
\n\ \n\
Return -1 on failure."); Return -1 on failure.");
......
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