Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <python2.6/Python.h>
- static PyObject * test(PyObject *self, PyObject *args)
- {
- Py_RETURN_NONE;
- }
- static PyMethodDef methods[] =
- {
- { "test", test, METH_VARARGS, " " },
- { NULL, NULL, 0, NULL }
- };
- PyMODINIT_FUNC initpyc(void)
- {
- Py_InitModule("pyc", methods);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement