From: Senthil Kumaran Date: Mon, 4 Jan 2016 02:07:06 +0000 (-0800) Subject: Backport documentation improvement. X-Git-Tag: v2.7.12rc1~311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2e6b54a4c147ad49e2e2c1c152b5847ba99712e;p=thirdparty%2FPython%2Fcpython.git Backport documentation improvement. Issue24898 - Improve str.find documentation. Simplify str.find explaination as per Georg Brandl's suggestion. --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 94bfac1ead26..fb9140d6c52d 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -963,10 +963,9 @@ 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 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::