From: Andrew M. Kuchling Date: Sat, 4 Oct 2008 01:03:42 +0000 (+0000) Subject: Docstring change: Specify exception raised X-Git-Tag: v2.7a1~2780 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b15d6fb9a7d7e6783121274a4721927aa9a0effd;p=thirdparty%2FPython%2Fcpython.git Docstring change: Specify exception raised --- diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 348ae8cdad6d..b1a7003cec44 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,