Issue #15656: fixing code sample in extending doc

This commit is contained in:
Eli Bendersky 2012-08-15 14:49:49 +03:00
parent 2b209cd78d
commit 8f773493b6
1 changed files with 10 additions and 5 deletions

View File

@ -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);
} }