diff options
Diffstat (limited to 'Demo')
-rw-r--r-- | Demo/embed/demo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Demo/embed/demo.c b/Demo/embed/demo.c index 581365f..6005f13 100644 --- a/Demo/embed/demo.c +++ b/Demo/embed/demo.c @@ -48,13 +48,12 @@ main(int argc, char **argv) static PyObject * xyzzy_foo(PyObject *self, PyObject* args) { - if (!PyArg_ParseTuple(args, "")) - return NULL; return PyInt_FromLong(42L); } static PyMethodDef xyzzy_methods[] = { - {"foo", xyzzy_foo, 1}, + {"foo", xyzzy_foo, METH_NOARGS, + "Return the meaning of everything."}, {NULL, NULL} /* sentinel */ }; |