summaryrefslogtreecommitdiffstats
path: root/Doc/library/stdtypes.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-04-27 22:58:50 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-04-27 22:58:50 (GMT)
commitd99cd81df5bee3eb5a5de0dcc5d5046da3db9006 (patch)
treeddc9a78ffb7ff26baf9927555fb79d7e488491c5 /Doc/library/stdtypes.rst
parent9bfbe61961302dcb2da6ecdb53353435362244cc (diff)
downloadcpython-d99cd81df5bee3eb5a5de0dcc5d5046da3db9006.zip
cpython-d99cd81df5bee3eb5a5de0dcc5d5046da3db9006.tar.gz
cpython-d99cd81df5bee3eb5a5de0dcc5d5046da3db9006.tar.bz2
Merged revisions 80561 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80561 | benjamin.peterson | 2010-04-27 17:56:31 -0500 (Tue, 27 Apr 2010) | 1 line make slice notation in (r)find docs consistent ........
Diffstat (limited to 'Doc/library/stdtypes.rst')
-rw-r--r--Doc/library/stdtypes.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 46a481a..c5d6766 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -912,10 +912,10 @@ functions based on regular expressions.
.. method:: str.find(sub[, start[, end]])
- Return the lowest index in the string where substring *sub* is found, such that
- *sub* is contained in the range [*start*, *end*]. Optional arguments *start*
- and *end* are interpreted as in slice notation. Return ``-1`` if *sub* is not
- found.
+ Return the lowest index in the string where substring *sub* is found, such
+ that *sub* is contained in the slice ``s[start:end]``. Optional arguments
+ *start* and *end* are interpreted as in slice notation. Return ``-1`` if
+ *sub* is not found.
.. method:: str.format(*args, **kwargs)
@@ -1082,9 +1082,9 @@ functions based on regular expressions.
.. method:: str.rfind(sub[, start[, end]])
- Return the highest index in the string where substring *sub* is found, such that
- *sub* is contained within s[start,end]. Optional arguments *start* and *end*
- are interpreted as in slice notation. Return ``-1`` on failure.
+ Return the highest index in the string where substring *sub* is found, such
+ that *sub* is contained within ``s[start:end]``. Optional arguments *start*
+ and *end* are interpreted as in slice notation. Return ``-1`` on failure.
.. method:: str.rindex(sub[, start[, end]])