diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2008-10-04 01:03:42 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2008-10-04 01:03:42 (GMT) |
commit | b15d6fb9a7d7e6783121274a4721927aa9a0effd (patch) | |
tree | 7c4238deb4259ef923a600951ebcdc4b2147531a /Objects/tupleobject.c | |
parent | bd7c4ca569633760c88be31dee12bd742b80e228 (diff) | |
download | cpython-b15d6fb9a7d7e6783121274a4721927aa9a0effd.zip cpython-b15d6fb9a7d7e6783121274a4721927aa9a0effd.tar.gz cpython-b15d6fb9a7d7e6783121274a4721927aa9a0effd.tar.bz2 |
Docstring change: Specify exception raised
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, |