Skip to content

Commit d0d1c81

Browse files
author
andrew.kuchling
committed
Docstring changes: Specify exceptions raised
git-svn-id: http://svn.python.org/projects/python/trunk@66785 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 7927ea3 commit d0d1c81

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Objects/listobject.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,11 +2459,14 @@ PyDoc_STRVAR(extend_doc,
24592459
PyDoc_STRVAR(insert_doc,
24602460
"L.insert(index, object) -- insert object before index");
24612461
PyDoc_STRVAR(pop_doc,
2462-
"L.pop([index]) -> item -- remove and return item at index (default last)");
2462+
"L.pop([index]) -> item -- remove and return item at index (default last).\n"
2463+
"Raises IndexError if list is empty or index is out of range.");
24632464
PyDoc_STRVAR(remove_doc,
2464-
"L.remove(value) -- remove first occurrence of value");
2465+
"L.remove(value) -- remove first occurrence of value.\n"
2466+
"Raises ValueError if the value is not present.");
24652467
PyDoc_STRVAR(index_doc,
2466-
"L.index(value, [start, [stop]]) -> integer -- return first index of value");
2468+
"L.index(value, [start, [stop]]) -> integer -- return first index of value.\n"
2469+
"Raises ValueError if the value is not present.");
24672470
PyDoc_STRVAR(count_doc,
24682471
"L.count(value) -> integer -- return number of occurrences of value");
24692472
PyDoc_STRVAR(reverse_doc,

0 commit comments

Comments
 (0)