From: Fred Drake Date: Fri, 2 Aug 2002 20:23:40 +0000 (+0000) Subject: Fix ref(), proxy() docstrings, based on comments from David Abrahams. X-Git-Tag: v2.3c1~4763 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=610291cf5a14370951149844a694669eda1986ac;p=python Fix ref(), proxy() docstrings, based on comments from David Abrahams. --- diff --git a/Modules/_weakref.c b/Modules/_weakref.c index 86bd036cd3..21521150ae 100644 --- a/Modules/_weakref.c +++ b/Modules/_weakref.c @@ -58,9 +58,10 @@ weakref_getweakrefs(PyObject *self, PyObject *object) PyDoc_STRVAR(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 @@ weakref_ref(PyObject *self, PyObject *args) PyDoc_STRVAR(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)