diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2008-10-04 01:04:24 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2008-10-04 01:04:24 (GMT) |
commit | d810cdf8491632089733ba260a29a1e0693c7b6b (patch) | |
tree | 1645f43abecf2e4af454e2382bf1348ac3951054 /Objects | |
parent | b15d6fb9a7d7e6783121274a4721927aa9a0effd (diff) | |
download | cpython-d810cdf8491632089733ba260a29a1e0693c7b6b.zip cpython-d810cdf8491632089733ba260a29a1e0693c7b6b.tar.gz cpython-d810cdf8491632089733ba260a29a1e0693c7b6b.tar.bz2 |
Docstring changes: Specify exceptions raised
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/listobject.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 10f2c5d..e8379e1 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -2459,11 +2459,14 @@ PyDoc_STRVAR(extend_doc, PyDoc_STRVAR(insert_doc, "L.insert(index, object) -- insert object before index"); PyDoc_STRVAR(pop_doc, -"L.pop([index]) -> item -- remove and return item at index (default last)"); +"L.pop([index]) -> item -- remove and return item at index (default last).\n" +"Raises IndexError if list is empty or index is out of range."); PyDoc_STRVAR(remove_doc, -"L.remove(value) -- remove first occurrence of value"); +"L.remove(value) -- remove first occurrence of value.\n" +"Raises ValueError if the value is not present."); PyDoc_STRVAR(index_doc, -"L.index(value, [start, [stop]]) -> integer -- return first index of value"); +"L.index(value, [start, [stop]]) -> integer -- return first index of value.\n" +"Raises ValueError if the value is not present."); PyDoc_STRVAR(count_doc, "L.count(value) -> integer -- return number of occurrences of value"); PyDoc_STRVAR(reverse_doc, |