mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Convert more modules to METH_VARARGS.
This commit is contained in:
parent
96a8c3954c
commit
bf92f46572
8 changed files with 139 additions and 113 deletions
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue