Advertisement
Guest User

pyc.c

a guest
Aug 26th, 2011
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <python2.6/Python.h>
  2.  
  3.  
  4. static PyObject * test(PyObject *self, PyObject *args)
  5. {
  6.     Py_RETURN_NONE;
  7. }
  8.  
  9. static PyMethodDef methods[] =
  10. {
  11.     { "test",  test, METH_VARARGS, " " },
  12.     { NULL, NULL, 0, NULL }
  13. };
  14.  
  15. PyMODINIT_FUNC initpyc(void)
  16. {
  17.     Py_InitModule("pyc", methods);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement