[Python-checkins] CVS: python/dist/src/Objects listobject.c,2.88,2.89
Tim Peters
python-dev@python.org
Wed, 13 Dec 2000 14:35:49 -0800
Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv22950/python/dist/src/objects
Modified Files:
listobject.c
Log Message:
Use METH_VARARGS instead of "1" in list method table.
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.88
retrieving revision 2.89
diff -C2 -r2.88 -r2.89
*** listobject.c 2000/09/26 05:46:01 2.88
--- listobject.c 2000/12/13 22:35:46 2.89
***************
*** 1437,1449 ****
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},
{NULL, NULL} /* sentinel */
};
--- 1437,1449 ----
static PyMethodDef list_methods[] = {
! {"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 */
};