diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-12-13 22:35:46 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-12-13 22:35:46 (GMT) |
commit | 0e76ab2eccbee4205f20b87b3352721edcfc29f9 (patch) | |
tree | 8ca0efce663c1817ebaa49d15276bafd8ce05474 /Objects/listobject.c | |
parent | ec126dab9c98be553e17847e1599a1fbcdea9538 (diff) | |
download | cpython-0e76ab2eccbee4205f20b87b3352721edcfc29f9.zip cpython-0e76ab2eccbee4205f20b87b3352721edcfc29f9.tar.gz cpython-0e76ab2eccbee4205f20b87b3352721edcfc29f9.tar.bz2 |
Use METH_VARARGS instead of "1" in list method table.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index b874af9..e5073e1 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -1436,15 +1436,15 @@ static char sort_doc[] = "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 */ }; |