summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-08-02 20:23:40 (GMT)
committerFred Drake <fdrake@acm.org>2002-08-02 20:23:40 (GMT)
commit610291cf5a14370951149844a694669eda1986ac (patch)
tree3ab61ead5b979dc891eeed7dfa6dc9186a0994da
parent62abc2f6ce9cb2ad9a83f744cf91cdf77a769f24 (diff)
downloadcpython-610291cf5a14370951149844a694669eda1986ac.zip
cpython-610291cf5a14370951149844a694669eda1986ac.tar.gz
cpython-610291cf5a14370951149844a694669eda1986ac.tar.bz2
Fix ref(), proxy() docstrings, based on comments from David Abrahams.
-rw-r--r--Modules/_weakref.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c
index 86bd036..2152115 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)
n value='bug_3606683_84'>bug_3606683_84 Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-19 13:19:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-19 13:19:04 (GMT)
commit0b7abfd9bc2564c12aa0675058917dc7f7727082 (patch)
treeb77352df51ab65786ec59f2d00f5849051921e53 /generic
parent1df5f1053536d20ad31fac5c678647258b61c24f (diff)
parentd5479489aab71c267a1371d2ac1d0674a15a0c61 (diff)
downloadtcl-0b7abfd9bc2564c12aa0675058917dc7f7727082.zip
tcl-0b7abfd9bc2564c12aa0675058917dc7f7727082.tar.gz
tcl-0b7abfd9bc2564c12aa0675058917dc7f7727082.tar.bz2
Merge 8.7