]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docstring change: Specify exception raised
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 4 Oct 2008 01:03:42 +0000 (01:03 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 4 Oct 2008 01:03:42 +0000 (01:03 +0000)
Objects/tupleobject.c

index 348ae8cdad6d0636b8e420434a54dde8a3abff1f..b1a7003cec443a1303eac66ecb6ac5f827073343 100644 (file)
@@ -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,