diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 (GMT) |
commit | 14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f (patch) | |
tree | 7b150133cdd51df851c6bdaf261cd9ea30c149af /Objects/listobject.c | |
parent | 654c11ee3a2c9b72c040524c9cc4f95a1858f20b (diff) | |
download | cpython-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.zip cpython-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.tar.gz cpython-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.tar.bz2 |
Patch #568124: Add doc string macros.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 063ebfb..f29774e 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -1633,24 +1633,24 @@ list_nohash(PyObject *self) return -1; } -static char append_doc[] = -"L.append(object) -- append object to end"; -static char extend_doc[] = -"L.extend(list) -- extend list by appending list elements"; -static char insert_doc[] = -"L.insert(index, object) -- insert object before index"; -static char pop_doc[] = -"L.pop([index]) -> item -- remove and return item at index (default last)"; -static char remove_doc[] = -"L.remove(value) -- remove first occurrence of value"; -static char index_doc[] = -"L.index(value) -> integer -- return index of first occurrence of value"; -static char count_doc[] = -"L.count(value) -> integer -- return number of occurrences of value"; -static char reverse_doc[] = -"L.reverse() -- reverse *IN PLACE*"; -static char sort_doc[] = -"L.sort([cmpfunc]) -- sort *IN PLACE*; if given, cmpfunc(x, y) -> -1, 0, 1"; +PyDoc_STRVAR(append_doc, +"L.append(object) -- append object to end"); +PyDoc_STRVAR(extend_doc, +"L.extend(list) -- extend list by appending list elements"); +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)"); +PyDoc_STRVAR(remove_doc, +"L.remove(value) -- remove first occurrence of value"); +PyDoc_STRVAR(index_doc, +"L.index(value) -> integer -- return index of first occurrence of value"); +PyDoc_STRVAR(count_doc, +"L.count(value) -> integer -- return number of occurrences of value"); +PyDoc_STRVAR(reverse_doc, +"L.reverse() -- reverse *IN PLACE*"); +PyDoc_STRVAR(sort_doc, +"L.sort([cmpfunc]) -- sort *IN PLACE*; if given, cmpfunc(x, y) -> -1, 0, 1"); static PyMethodDef list_methods[] = { {"append", (PyCFunction)listappend, METH_O, append_doc}, |