Mercurial > cpython-lru_cache-weakref
view PC/example_nt/example.c @ 39940:dfd809dcf680 2.5
Bug #1446043: correctly raise a LookupError if an encoding name given
to encodings.search_function() contains a dot.
(backport from rev. 52075)
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sat, 30 Sep 2006 11:22:35 +0000 |
| parents | a5298f371be7 |
| children | bd0e361bd642 |
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} }; PyMODINIT_FUNC initexample(void) { Py_InitModule("example", example_methods); }
