Mercurial > cpython-lru_cache-weakref
view PC/example_nt/example.c @ 28501:00a56fbea69f 2.2
Backporting:
revision 1.27
date: 2003/03/30 20:46:47; author: bwarsaw; state: Exp; lines: +3 -3
__unicode__(): Fix the logic for calculating whether to add a
separating space or not between encoded chunks. Closes SF bug
#710498.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Fri, 04 Apr 2003 02:46:38 +0000 |
| parents | a1ce07218781 |
| children | 834fd9b3ceee |
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, 1, "foo() doc string"}, {NULL, NULL} }; void initexample(void) { Py_InitModule("example", example_methods); }
