Mercurial > cpython-lru_cache-weakref
view PC/example_nt/example.c @ 72990:8564d2b240b6
default - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
semicolons. Patch by Ben Darnell and Petri Lehtinen.
| author | Senthil Kumaran <senthil@uthcode.com> |
|---|---|
| date | Thu, 20 Oct 2011 01:06:59 +0800 |
| parents | cab14be0ada1 |
| children |
line wrap: on
line source
#include "Python.h" static PyObject * ex_foo(PyObject *self, PyObject *args) { printf("Hello, world\n"); Py_INCREF(Py_None); return Py_None; } static PyMethodDef example_methods[] = { {"foo", ex_foo, METH_VARARGS, "foo() doc string"}, {NULL, NULL} }; static struct PyModuleDef examplemodule = { PyModuleDef_HEAD_INIT, "example", "example module doc string", -1, example_methods, NULL, NULL, NULL, NULL }; PyMODINIT_FUNC PyInit_example(void) { return PyModule_Create(&examplemodule); }
