Added 'description' class attribute to every command class (to help the
[python/dscho.git] / PC / example_nt / example.c
blobdd8964bbb04111fbc88bddf5402153fffeac578c
1 #include "Python.h"
3 static PyObject *
4 ex_foo(self, args)
5 PyObject *self, *args;
7 printf("Hello, world\n");
8 Py_INCREF(Py_None);
9 return Py_None;
12 static PyMethodDef example_methods[] = {
13 {"foo", ex_foo, 1, "foo() doc string"},
14 {NULL, NULL}
17 void
18 initexample()
20 Py_InitModule("example", example_methods);