2
/* List of methods defined in the module */
4
static struct PyMethodDef $abbrev$_methods[] = {
6
{NULL, (PyCFunction)NULL, 0, NULL} /* sentinel */
10
/* Initialization function for the module (*must* be called init$name$) */
12
static char $name$_module_documentation[] =
21
/* Create the module and add the functions */
22
m = Py_InitModule4("$name$", $abbrev$_methods,
23
$name$_module_documentation,
24
(PyObject*)NULL,PYTHON_API_VERSION);
26
/* Add some symbolic constants to the module */
27
d = PyModule_GetDict(m);
28
ErrorObject = PyString_FromString("$name$.error");
29
PyDict_SetItemString(d, "error", ErrorObject);
31
/* XXXX Add constants here */
33
/* Check for errors */
35
Py_FatalError("can't initialize module $name$");