summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-04-27 22:59:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-04-27 22:59:11 (GMT)
commit55a22d9105a5849a8cbbdac22f73d622f06b93e7 (patch)
tree6aa32f94d218bd2f07a1fe7496a76743ff4964c7
parent12cb1297f4c055e70a0d89359030d0051bdeed92 (diff)
downloadcpython-55a22d9105a5849a8cbbdac22f73d622f06b93e7.zip
cpython-55a22d9105a5849a8cbbdac22f73d622f06b93e7.tar.gz
cpython-55a22d9105a5849a8cbbdac22f73d622f06b93e7.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 ........
-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 2d830d2..39bef7c 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -875,10 +875,10 @@ string 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)
@@ -1024,9 +1024,9 @@ string 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]])