[Python-checkins] bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877)

Victor Stinner webhook-mailer at python.org
Fri May 3 08:22:43 EDT 2019


https://github.com/python/cpython/commit/22c526394b2ef51b985873ddbfbcc32c16411919
commit: 22c526394b2ef51b985873ddbfbcc32c16411919
branch: master
author: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas at gmail.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2019-05-03T08:22:11-04:00
summary:

bpo:34848 : Correct an incorrect  docstring for range().index method (GH-9877)

files:
M Objects/rangeobject.c

diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index 4b8e5ed4cfd4..ac868f6951c2 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[] = {



More information about the Python-checkins mailing list