]> granicus.if.org Git - python/commitdiff
Bug #1763149: use proper slice syntax in docstring.
authorGeorg Brandl <georg@python.org>
Sun, 29 Jul 2007 17:38:35 +0000 (17:38 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 29 Jul 2007 17:38:35 +0000 (17:38 +0000)
 (backport)

Objects/stringobject.c
Objects/unicodeobject.c

index 16affdd6d5ba9cabb221fecaf8bdb995aa04d224..4dd64f8429aec3fc95ab618b16a30d9abbbe1e6c 100644 (file)
@@ -1891,7 +1891,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.");
@@ -1930,7 +1930,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.");
index 1a532c905e09d108ef8a4306bd309d825599cf3a..f686ba6c5b852887e25396663084f1d35a081bcd 100644 (file)
@@ -5760,7 +5760,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.");
@@ -6501,7 +6501,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.");