Allow more docstrings to be removed during compilation in some modules

This commit is contained in:
Neal Norwitz 2002-08-13 22:20:41 +00:00
parent 5dc2a37f0f
commit 200788ce45
4 changed files with 40 additions and 38 deletions

View file

@ -146,9 +146,9 @@ op_delslice(PyObject *s, PyObject *a)
#undef spam1
#undef spam2
#define spam1(OP,DOC) {#OP, OP, METH_VARARGS, DOC},
#define spam1(OP,DOC) {#OP, OP, METH_VARARGS, PyDoc_STR(DOC)},
#define spam2(OP,ALTOP,DOC) {#OP, op_##OP, METH_VARARGS, DOC}, \
{#ALTOP, op_##OP, METH_VARARGS, DOC},
{#ALTOP, op_##OP, METH_VARARGS, PyDoc_STR(DOC)},
static struct PyMethodDef operator_methods[] = {