From f10a79aad4e2fc62d2c3675e89f873b22b185e7b Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 11 Oct 2008 00:49:57 +0000 Subject: merge from trunk --- Objects/tupleobject.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Objects/tupleobject.c') diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 963d90e1a9..679ba8f585 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -694,7 +694,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 v1.2.1