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

Objects/stringobject.c
Objects/unicodeobject.c

index 5d343bdf99b9eaed23fd29d4d8ff4634e8412187..12fbaed5fdd5fc12070e177b0f9c716dfbd58c7a 100644 (file)
@@ -1890,7 +1890,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.");
@@ -1929,7 +1929,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 6cc6541af5788df8fa0e5d442fa6217c4fd5c2b7..10a8385b9cdff5a6a63c471fa606a381fd55e940 100644 (file)
@@ -5757,7 +5757,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.");
@@ -6498,7 +6498,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.");