mirror of https://github.com/python/cpython
Issue #15656: fixing code sample in extending doc
This commit is contained in:
parent
2b209cd78d
commit
8f773493b6
|
@ -735,13 +735,18 @@ Philbrick (philbrick@hks.com)::
|
||||||
{NULL, NULL, 0, NULL} /* sentinel */
|
{NULL, NULL, 0, NULL} /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
::
|
static struct PyModuleDef keywdargmodule = {
|
||||||
|
PyModuleDef_HEAD_INIT,
|
||||||
|
"keywdarg",
|
||||||
|
NULL,
|
||||||
|
-1,
|
||||||
|
keywdarg_methods
|
||||||
|
};
|
||||||
|
|
||||||
void
|
PyMODINIT_FUNC
|
||||||
initkeywdarg(void)
|
PyInit_keywdarg(void)
|
||||||
{
|
{
|
||||||
/* Create the module and add the functions */
|
return PyModule_Create(&keywdargmodule);
|
||||||
Py_InitModule("keywdarg", keywdarg_methods);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue