[Python-checkins] python/dist/src/Modules xxsubtype.c,2.17,2.18
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Tue, 13 Aug 2002 18:45:40 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv5178
Modified Files:
xxsubtype.c
Log Message:
add some example docstrings using PyDoc_STR
Index: xxsubtype.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/xxsubtype.c,v
retrieving revision 2.17
retrieving revision 2.18
diff -C2 -d -r2.17 -r2.18
*** xxsubtype.c 2 Aug 2002 02:27:13 -0000 2.17
--- xxsubtype.c 14 Aug 2002 01:45:37 -0000 2.18
***************
*** 66,80 ****
static PyMethodDef spamlist_methods[] = {
{"getstate", (PyCFunction)spamlist_getstate, METH_VARARGS,
! "getstate() -> state"},
{"setstate", (PyCFunction)spamlist_setstate, METH_VARARGS,
! "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)"},
{"staticmeth", (PyCFunction)spamlist_specialmeth,
METH_VARARGS | METH_KEYWORDS | METH_STATIC,
! "staticmeth(*args, **kw)"},
{NULL, NULL},
};
--- 66,80 ----
static PyMethodDef spamlist_methods[] = {
{"getstate", (PyCFunction)spamlist_getstate, METH_VARARGS,
! PyDoc_STR("getstate() -> state")},
{"setstate", (PyCFunction)spamlist_setstate, METH_VARARGS,
! 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,
! PyDoc_STR("classmeth(*args, **kw)")},
{"staticmeth", (PyCFunction)spamlist_specialmeth,
METH_VARARGS | METH_KEYWORDS | METH_STATIC,
! PyDoc_STR("staticmeth(*args, **kw)")},
{NULL, NULL},
};
***************
*** 99,103 ****
static PyGetSetDef spamlist_getsets[] = {
{"state", (getter)spamlist_state_get, NULL,
! "an int variable for demonstration purposes"},
{0}
};
--- 99,103 ----
static PyGetSetDef spamlist_getsets[] = {
{"state", (getter)spamlist_state_get, NULL,
! PyDoc_STR("an int variable for demonstration purposes")},
{0}
};
***************
*** 174,180 ****
static PyMethodDef spamdict_methods[] = {
{"getstate", (PyCFunction)spamdict_getstate, METH_VARARGS,
! "getstate() -> state"},
{"setstate", (PyCFunction)spamdict_setstate, METH_VARARGS,
! "setstate(state)"},
{NULL, NULL},
};
--- 174,180 ----
static PyMethodDef spamdict_methods[] = {
{"getstate", (PyCFunction)spamdict_getstate, METH_VARARGS,
! PyDoc_STR("getstate() -> state")},
{"setstate", (PyCFunction)spamdict_setstate, METH_VARARGS,
! PyDoc_STR("setstate(state)")},
{NULL, NULL},
};
***************
*** 193,197 ****
static PyMemberDef spamdict_members[] = {
{"state", T_INT, offsetof(spamdictobject, state), READONLY,
! "an int variable for demonstration purposes"},
{0}
};
--- 193,197 ----
static PyMemberDef spamdict_members[] = {
{"state", T_INT, offsetof(spamdictobject, state), READONLY,
! PyDoc_STR("an int variable for demonstration purposes")},
{0}
};