[Python-checkins] CVS: python/dist/src/Modules xxsubtype.c,2.6,2.7
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 20 Sep 2001 14:45:28 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Include descrobject.h,2.4,2.5 object.h,2.91,2.92
- Next message: [Python-checkins] CVS: python/dist/src/Objects classobject.c,2.149,2.150 descrobject.c,2.12,2.13 fileobject.c,2.129,2.130 frameobject.c,2.57,2.58 funcobject.c,2.44,2.45 methodobject.c,2.39,2.40 typeobject.c,2.66,2.67
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv5414/Modules
Modified Files:
xxsubtype.c
Log Message:
Add optional docstrings to getset descriptors. Fortunately, there's
no backwards compatibility to worry about, so I just pushed the
'closure' struct member to the back -- it's never used in the current
code base (I may eliminate it, but that's more work because the getter
and setter signatures would have to change.)
As examples, I added actual docstrings to the getset attributes of a
few types: file.closed, xxsubtype.spamdict.state.
Index: xxsubtype.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/xxsubtype.c,v
retrieving revision 2.6
retrieving revision 2.7
diff -C2 -d -r2.6 -r2.7
*** xxsubtype.c 2001/09/20 20:46:18 2.6
--- xxsubtype.c 2001/09/20 21:45:26 2.7
***************
*** 56,61 ****
}
! static struct getsetlist spamlist_getsets[] = {
! {"state", (getter)spamlist_state_get, NULL, NULL},
{0}
};
--- 56,62 ----
}
! static PyGetSetDef spamlist_getsets[] = {
! {"state", (getter)spamlist_state_get, NULL,
! "an int variable for demonstration purposes"},
{0}
};
- Previous message: [Python-checkins] CVS: python/dist/src/Include descrobject.h,2.4,2.5 object.h,2.91,2.92
- Next message: [Python-checkins] CVS: python/dist/src/Objects classobject.c,2.149,2.150 descrobject.c,2.12,2.13 fileobject.c,2.129,2.130 frameobject.c,2.57,2.58 funcobject.c,2.44,2.45 methodobject.c,2.39,2.40 typeobject.c,2.66,2.67
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]