summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-08-14 01:45:37 +0000
committerSkip Montanaro <skip@pobox.com>2002-08-14 01:45:37 +0000
commit23b5918f68fa083e4622d99ddf9c4bbd5942d10b (patch)
tree1331bb53fbaa376c389d1f3fdba6a4c35d5f6d79 /Modules
parentd9e7d2455717d74930fe1e745cce1d87ccc8a6a8 (diff)
downloadcpython-git-23b5918f68fa083e4622d99ddf9c4bbd5942d10b.tar.gz
add some example docstrings using PyDoc_STR
Diffstat (limited to 'Modules')
-rw-r--r--Modules/xxsubtype.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/xxsubtype.c b/Modules/xxsubtype.c
index c826b6e633..ffbc72b165 100644
--- a/Modules/xxsubtype.c
+++ b/Modules/xxsubtype.c
@@ -65,17 +65,17 @@ spamlist_specialmeth(PyObject *self, PyObject *args, PyObject *kw)
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},
};
@@ -98,7 +98,7 @@ spamlist_state_get(spamlistobject *self)
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}
};
@@ -173,9 +173,9 @@ spamdict_setstate(spamdictobject *self, PyObject *args)
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},
};
@@ -192,7 +192,7 @@ spamdict_init(spamdictobject *self, PyObject *args, PyObject *kwds)
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}
};