]> granicus.if.org Git - python/commitdiff
bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877)
authorSrinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Fri, 3 May 2019 12:22:12 +0000 (17:52 +0530)
committerVictor Stinner <vstinner@redhat.com>
Fri, 3 May 2019 12:22:11 +0000 (08:22 -0400)
Objects/rangeobject.c

index 4b8e5ed4cfd4cd0518e8ca4daa51efbef23cc290..ac868f6951c29cca6c09f832de9fc15f7a992726 100644 (file)
@@ -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[] = {