From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 3 May 2019 12:39:17 +0000 (-0700) Subject: bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877) X-Git-Tag: v3.7.4rc1~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=128e2262a8ffc7b94e44455cc1ba2e0f74316461;p=thirdparty%2FPython%2Fcpython.git bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877) (cherry picked from commit 22c526394b2ef51b985873ddbfbcc32c16411919) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) --- diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 037be870e36a..157ab8194764 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -645,7 +645,7 @@ PyDoc_STRVAR(count_doc, "rangeobject.count(value) -> integer -- return number of occurrences of value"); PyDoc_STRVAR(index_doc, -"rangeobject.index(value, [start, [stop]]) -> integer -- return index of value.\n" +"rangeobject.index(value) -> integer -- return index of value.\n" "Raise ValueError if the value is not present."); static PyMethodDef range_methods[] = {