mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
50ecc15d05
commit
ef6373a4f6
3 changed files with 25 additions and 19 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue