[Python-checkins] r56620 - python/trunk/Objects/stringobject.c python/trunk/Objects/unicodeobject.c
georg.brandl
python-checkins at python.org
Sun Jul 29 19:38:36 CEST 2007
Author: georg.brandl
Date: Sun Jul 29 19:38:35 2007
New Revision: 56620
Modified:
python/trunk/Objects/stringobject.c
python/trunk/Objects/unicodeobject.c
Log:
Bug #1763149: use proper slice syntax in docstring.
(backport)
Modified: python/trunk/Objects/stringobject.c
==============================================================================
--- python/trunk/Objects/stringobject.c (original)
+++ python/trunk/Objects/stringobject.c Sun Jul 29 19:38:35 2007
@@ -1891,7 +1891,7 @@
"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 @@
"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.");
Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c (original)
+++ python/trunk/Objects/unicodeobject.c Sun Jul 29 19:38:35 2007
@@ -5760,7 +5760,7 @@
"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 @@
"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.");
More information about the Python-checkins
mailing list