static PyMethodDef spamlist_methods[] = {
{"getstate", (PyCFunction)spamlist_getstate, METH_VARARGS,
- "getstate() -> state"},
+ PyDoc_STR("getstate() -> state")},
{"setstate", (PyCFunction)spamlist_setstate, METH_VARARGS,
- "setstate(state)"},
+ PyDoc_STR("setstate(state)")},
/* These entries differ only in the flags; they are used by the tests
in test.test_descr. */
{"classmeth", (PyCFunction)spamlist_specialmeth,
METH_VARARGS | METH_KEYWORDS | METH_CLASS,
- "classmeth(*args, **kw)"},
+ PyDoc_STR("classmeth(*args, **kw)")},
{"staticmeth", (PyCFunction)spamlist_specialmeth,
METH_VARARGS | METH_KEYWORDS | METH_STATIC,
- "staticmeth(*args, **kw)"},
+ PyDoc_STR("staticmeth(*args, **kw)")},
{NULL, NULL},
};
static PyGetSetDef spamlist_getsets[] = {
{"state", (getter)spamlist_state_get, NULL,
- "an int variable for demonstration purposes"},
+ PyDoc_STR("an int variable for demonstration purposes")},
{0}
};
static PyMethodDef spamdict_methods[] = {
{"getstate", (PyCFunction)spamdict_getstate, METH_VARARGS,
- "getstate() -> state"},
+ PyDoc_STR("getstate() -> state")},
{"setstate", (PyCFunction)spamdict_setstate, METH_VARARGS,
- "setstate(state)"},
+ PyDoc_STR("setstate(state)")},
{NULL, NULL},
};
static PyMemberDef spamdict_members[] = {
{"state", T_INT, offsetof(spamdictobject, state), READONLY,
- "an int variable for demonstration purposes"},
+ PyDoc_STR("an int variable for demonstration purposes")},
{0}
};