Mercurial > cpython-lru_cache-weakref
diff Objects/listobject.c @ 15558:c81bed0168a0 legacy-trunk
Use METH_VARARGS instead of "1" in list method table.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Wed, 13 Dec 2000 22:35:46 +0000 |
| parents | 25ddd3dc7a7a |
| children | 3075a153a083 |
line wrap: on
line diff
--- a/Objects/listobject.c Wed Dec 13 20:48:29 2000 +0000 +++ b/Objects/listobject.c Wed Dec 13 22:35:46 2000 +0000 @@ -1436,15 +1436,15 @@ "L.sort([cmpfunc]) -- sort *IN PLACE*; if given, cmpfunc(x, y) -> -1, 0, 1"; static PyMethodDef list_methods[] = { - {"append", (PyCFunction)listappend, 1, append_doc}, - {"insert", (PyCFunction)listinsert, 1, insert_doc}, - {"extend", (PyCFunction)listextend, 1, extend_doc}, - {"pop", (PyCFunction)listpop, 1, pop_doc}, - {"remove", (PyCFunction)listremove, 1, remove_doc}, - {"index", (PyCFunction)listindex, 1, index_doc}, - {"count", (PyCFunction)listcount, 1, count_doc}, - {"reverse", (PyCFunction)listreverse, 1, reverse_doc}, - {"sort", (PyCFunction)listsort, 1, sort_doc}, + {"append", (PyCFunction)listappend, METH_VARARGS, append_doc}, + {"insert", (PyCFunction)listinsert, METH_VARARGS, insert_doc}, + {"extend", (PyCFunction)listextend, METH_VARARGS, extend_doc}, + {"pop", (PyCFunction)listpop, METH_VARARGS, pop_doc}, + {"remove", (PyCFunction)listremove, METH_VARARGS, remove_doc}, + {"index", (PyCFunction)listindex, METH_VARARGS, index_doc}, + {"count", (PyCFunction)listcount, METH_VARARGS, count_doc}, + {"reverse", (PyCFunction)listreverse, METH_VARARGS, reverse_doc}, + {"sort", (PyCFunction)listsort, METH_VARARGS, sort_doc}, {NULL, NULL} /* sentinel */ };
