[Python-checkins] python/dist/src/Modules _weakref.c,1.17,1.18
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Fri, 02 Aug 2002 13:23:42 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv24667/Modules
Modified Files:
_weakref.c
Log Message:
Fix ref(), proxy() docstrings, based on comments from David Abrahams.
Index: _weakref.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_weakref.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** _weakref.c 2 Aug 2002 02:27:13 -0000 1.17
--- _weakref.c 2 Aug 2002 20:23:40 -0000 1.18
***************
*** 59,65 ****
PyDoc_STRVAR(weakref_ref__doc__,
! "new(object[, callback]) -- create a weak reference to 'object';\n"
"when 'object' is finalized, 'callback' will be called and passed\n"
! "a reference to 'object'.");
static PyObject *
--- 59,66 ----
PyDoc_STRVAR(weakref_ref__doc__,
! "ref(object[, callback]) -- create a weak reference to 'object';\n"
"when 'object' is finalized, 'callback' will be called and passed\n"
! "a reference to the weak reference object when 'object' is about\n"
! "to be finalized.");
static PyObject *
***************
*** 80,84 ****
"proxy(object[, callback]) -- create a proxy object that weakly\n"
"references 'object'. 'callback', if given, is called with a\n"
! "reference to the proxy when it is about to be finalized.");
static PyObject *
--- 81,85 ----
"proxy(object[, callback]) -- create a proxy object that weakly\n"
"references 'object'. 'callback', if given, is called with a\n"
! "reference to the proxy when 'object' is about to be finalized.");
static PyObject *