py: update codegen

This commit is contained in:
Sebastien Binet 2015-02-02 10:33:22 +01:00
parent 131b1f1f41
commit efd5dfaa77
1 changed files with 5 additions and 5 deletions

View File

@ -141,16 +141,16 @@ gopy_Hi(PyObject *self, PyObject *args) {
} }
static PyMethodDef GoPy_hi_Methods[] = { static PyMethodDef GoPy_hi_Methods[] = {
{"Add", gopy_Add, METH_VARARGS, "doc for: hi.Add"}, {"Add", gopy_Add, METH_VARARGS, "Add returns the sum of its arguments.\n"},
{"Concat", gopy_Concat, METH_VARARGS, "doc for: hi.Concat"}, {"Concat", gopy_Concat, METH_VARARGS, "Concat concatenates two strings together and returns the resulting string.\n"},
{"Hello", gopy_Hello, METH_VARARGS, "doc for: hi.Hello"}, {"Hello", gopy_Hello, METH_VARARGS, "Hello prints a greeting from Go\n"},
{"Hi", gopy_Hi, METH_VARARGS, "doc for: hi.Hi"}, {"Hi", gopy_Hi, METH_VARARGS, "Hi prints hi from Go\n"},
{NULL, NULL, 0, NULL} /* Sentinel */ {NULL, NULL, 0, NULL} /* Sentinel */
}; };
PyMODINIT_FUNC PyMODINIT_FUNC
inithi(void) inithi(void)
{ {
(void) Py_InitModule3("hi", GoPy_hi_Methods, "FIXME(sbinet): documentation for package hi"); (void) Py_InitModule3("hi", GoPy_hi_Methods, "package hi exposes a few Go functions to be wrapped and used from Python.\n");
} }