summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>2019-05-03 12:22:12 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-05-03 12:22:11 (GMT)
commit22c526394b2ef51b985873ddbfbcc32c16411919 (patch)
tree5822759a79e8e2b608b5b2400e04fb61d7a8fd64
parent45e92fc02d57a7219f4f4922179929f19b3d1c28 (diff)
downloadcpython-22c526394b2ef51b985873ddbfbcc32c16411919.zip
cpython-22c526394b2ef51b985873ddbfbcc32c16411919.tar.gz
cpython-22c526394b2ef51b985873ddbfbcc32c16411919.tar.bz2
bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877)
-rw-r--r--Objects/rangeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index 4b8e5ed..ac868f6 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[] = {