Exhibit good form in C code: always provide docstrings in method tables, and

always fill in all slots of table entries.
Fixed a few minor markup errors.
This commit is contained in:
Fred Drake 2001-11-17 06:50:42 +00:00
parent 50ecc15d05
commit ef6373a4f6
3 changed files with 25 additions and 19 deletions

View file

@ -231,9 +231,10 @@ emb_numargs(PyObject *self, PyObject *args)
return Py_BuildValue("i", numargs);
}
static PyMethodDef EmbMethods[]={
{"numargs", emb_numargs, METH_VARARGS},
{NULL, NULL}
static PyMethodDef EmbMethods[] = {
{"numargs", emb_numargs, METH_VARARGS,
"Return the number of arguments received by the process."},
{NULL, NULL, 0, NULL}
};
\end{verbatim}