[Python-checkins] r66784 - python/trunk/Objects/tupleobject.c

andrew.kuchling python-checkins at python.org
Sat Oct 4 09:33:50 CEST 2008


Author: andrew.kuchling
Date: Sat Oct  4 03:03:42 2008
New Revision: 66784

Log:
Docstring change: Specify exception raised

Modified:
   python/trunk/Objects/tupleobject.c

Modified: python/trunk/Objects/tupleobject.c
==============================================================================
--- python/trunk/Objects/tupleobject.c	(original)
+++ python/trunk/Objects/tupleobject.c	Sat Oct  4 03:03:42 2008
@@ -719,7 +719,9 @@
 }
 
 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,


More information about the Python-checkins mailing list