[Python-checkins] cpython (3.4): Issue24898 - Improve str.find documentation.
senthil.kumaran
python-checkins at python.org
Sun Jan 3 21:00:39 EST 2016
https://hg.python.org/cpython/rev/7150e8a38c63
changeset: 99766:7150e8a38c63
branch: 3.4
parent: 99762:fae779a811ec
user: Senthil Kumaran <senthil at uthcode.com>
date: Sun Jan 03 17:57:10 2016 -0800
summary:
Issue24898 - Improve str.find documentation.
Simplify str.find explaination as per Georg Brandl's suggestion.
files:
Doc/library/stdtypes.rst | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1563,10 +1563,9 @@
.. 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 slice ``s[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 within
+ the slice ``s[start:end]``. Optional arguments *start* and *end* are
+ interpreted as in slice notation. Return ``-1`` if *sub* is not found.
.. note::
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list