From b15d6fb9a7d7e6783121274a4721927aa9a0effd Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 4 Oct 2008 01:03:42 +0000 Subject: Docstring change: Specify exception raised --- Objects/tupleobject.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 348ae8c..b1a7003 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -719,7 +719,9 @@ tuple_sizeof(PyTupleObject *self) } PyDoc_STRVAR(index_doc, -"T.index(value, [start, [stop]]) -> integer -- return first index of value"); +"T.index(value, [start, [stop]]) -> integer -- return first index of value.\n" +"Raises ValueError if the value is not present." +); PyDoc_STRVAR(count_doc, "T.count(value) -> integer -- return number of occurrences of value"); PyDoc_STRVAR(sizeof_doc, -- cgit v0.12