/usr/lib64/python2.6/site-packages/modulator/Templates
NameSizeModeActions
module_head1130644editdlrm
module_method2230644editdlrm
module_tail8090644editdlrm
object_head2430644editdlrm
object_method2150644editdlrm
object_mlist1170644editdlrm
object_new2190644editdlrm
object_structure8710644editdlrm
object_tail9010644editdlrm
object_tp_as_mapping6700644editdlrm
object_tp_as_number31250644editdlrm
object_tp_as_sequence14030644editdlrm
object_tp_call1590644editdlrm
object_tp_compare1210644editdlrm
object_tp_dealloc1170644editdlrm
object_tp_getattr1820644editdlrm
object_tp_hash950644editdlrm
object_tp_print1310644editdlrm
object_tp_repr1300644editdlrm
object_tp_setattr2000644editdlrm
object_tp_str1300644editdlrm
Edit: /usr/lib64/python2.6/site-packages/modulator/Templates/module_tail (809B)
/* List of methods defined in the module */ static struct PyMethodDef $abbrev$_methods[] = { $methodlist$ {NULL, (PyCFunction)NULL, 0, NULL} /* sentinel */ }; /* Initialization function for the module (*must* be called init$name$) */ static char $name$_module_documentation[] = "" ; void init$name$() { PyObject *m, *d; /* Create the module and add the functions */ m = Py_InitModule4("$name$", $abbrev$_methods, $name$_module_documentation, (PyObject*)NULL,PYTHON_API_VERSION); /* Add some symbolic constants to the module */ d = PyModule_GetDict(m); ErrorObject = PyString_FromString("$name$.error"); PyDict_SetItemString(d, "error", ErrorObject); /* XXXX Add constants here */ /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module $name$"); }