From: Senthil Kumaran Date: Wed, 27 Jul 2011 15:33:54 +0000 (+0800) Subject: Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry... X-Git-Tag: v3.2.2rc1~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53516a82df8db500a968451daa54fc72eaed7056;p=thirdparty%2FPython%2Fcpython.git Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject. --- diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 7a7410405ec8..0b45394a4af6 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -1102,7 +1102,7 @@ PyDoc_STRVAR(find__doc__, "B.find(sub[, start[, end]]) -> int\n\ \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\ \n\ Return -1 on failure."); @@ -1172,7 +1172,7 @@ PyDoc_STRVAR(rfind__doc__, "B.rfind(sub[, start[, end]]) -> int\n\ \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\ \n\ Return -1 on failure."); diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 38458ef9a6e3..8e35fa927697 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -1273,7 +1273,7 @@ PyDoc_STRVAR(find__doc__, "B.find(sub[, start[, end]]) -> int\n\ \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\ \n\ Return -1 on failure."); @@ -1312,7 +1312,7 @@ PyDoc_STRVAR(rfind__doc__, "B.rfind(sub[, start[, end]]) -> int\n\ \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\ \n\ Return -1 on failure."); diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 03807a45b9d1..75da0e7e8d28 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -7587,7 +7587,7 @@ PyDoc_STRVAR(find__doc__, "S.find(sub[, start[, end]]) -> int\n\ \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\ \n\ Return -1 on failure."); @@ -8513,7 +8513,7 @@ PyDoc_STRVAR(rfind__doc__, "S.rfind(sub[, start[, end]]) -> int\n\ \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\ \n\ Return -1 on failure.");