Convert more modules to METH_VARARGS.

This commit is contained in:
Georg Brandl 2006-05-29 21:58:42 +00:00
parent 96a8c3954c
commit bf92f46572
8 changed files with 139 additions and 113 deletions

View file

@ -108,8 +108,8 @@ sp_handle_dealloc(sp_handle_object* self)
}
static PyMethodDef sp_handle_methods[] = {
{"Detach", (PyCFunction) sp_handle_detach, 1},
{"Close", (PyCFunction) sp_handle_close, 1},
{"Detach", (PyCFunction) sp_handle_detach, METH_VARARGS},
{"Close", (PyCFunction) sp_handle_close, METH_VARARGS},
{NULL, NULL}
};

View file

@ -9,7 +9,7 @@ ex_foo(PyObject *self, PyObject *args)
}
static PyMethodDef example_methods[] = {
{"foo", ex_foo, 1, "foo() doc string"},
{"foo", ex_foo, METH_VARARGS, "foo() doc string"},
{NULL, NULL}
};