Mercurial > cpython-lru_cache-weakref
view PC/example_nt/example.c @ 12357:5b59ea41db4e legacy-trunk
Install the docs (with fewer rules).
Add descriptions for the system variables.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 10 Apr 2000 19:36:27 +0000 |
| parents | 180c1d3dac41 |
| children | a1ce07218781 |
line wrap: on
line source
#include "Python.h" static PyObject * ex_foo(self, args) PyObject *self, *args; { printf("Hello, world\n"); Py_INCREF(Py_None); return Py_None; } static PyMethodDef example_methods[] = { {"foo", ex_foo, 1, "foo() doc string"}, {NULL, NULL} }; void initexample() { Py_InitModule("example", example_methods); }
