diff Modules/_weakref.c @ 24502:fe2cfce4e658 2.2

Fix ref(), proxy() docstrings, based on comments from David Abrahams.
author Fred Drake <fdrake@acm.org>
date Fri, 02 Aug 2002 20:17:14 +0000
parents 899bebc89047
children
line wrap: on
line diff
--- a/Modules/_weakref.c	Thu Aug 01 21:14:33 2002 +0000
+++ b/Modules/_weakref.c	Fri Aug 02 20:17:14 2002 +0000
@@ -58,9 +58,10 @@
 
 
 static char weakref_ref__doc__[] =
-"new(object[, callback]) -- create a weak reference to 'object';\n"
+"ref(object[, callback]) -- create a weak reference to 'object';\n"
 "when 'object' is finalized, 'callback' will be called and passed\n"
-"a reference to 'object'.";
+"a reference to the weak reference object when 'object' is about\n"
+"to be finalized.";
 
 static PyObject *
 weakref_ref(PyObject *self, PyObject *args)
@@ -79,7 +80,7 @@
 static char weakref_proxy__doc__[] =
 "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.";
+"reference to the proxy when 'object' is about to be finalized.";
 
 static PyObject *
 weakref_proxy(PyObject *self, PyObject *args)