[Python-checkins] python/dist/src/Modules _weakref.c,1.15,1.15.8.1

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Fri, 02 Aug 2002 13:17:17 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv21750/Modules

Modified Files:
      Tag: release22-maint
	_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.15
retrieving revision 1.15.8.1
diff -C2 -d -r1.15 -r1.15.8.1
*** _weakref.c	23 Oct 2001 21:12:47 -0000	1.15
--- _weakref.c	2 Aug 2002 20:17:14 -0000	1.15.8.1
***************
*** 59,65 ****
  
  static char 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 ----
  
  static char 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 *