Kaydet (Commit) 0123d97a authored tarafından Fred Drake's avatar Fred Drake

Fix ref(), proxy() docstrings, based on comments from David Abrahams.

üst 2bf28655
...@@ -58,9 +58,10 @@ weakref_getweakrefs(PyObject *self, PyObject *object) ...@@ -58,9 +58,10 @@ weakref_getweakrefs(PyObject *self, PyObject *object)
static char weakref_ref__doc__[] = 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" "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 * static PyObject *
weakref_ref(PyObject *self, PyObject *args) weakref_ref(PyObject *self, PyObject *args)
...@@ -79,7 +80,7 @@ weakref_ref(PyObject *self, PyObject *args) ...@@ -79,7 +80,7 @@ weakref_ref(PyObject *self, PyObject *args)
static char weakref_proxy__doc__[] = static char weakref_proxy__doc__[] =
"proxy(object[, callback]) -- create a proxy object that weakly\n" "proxy(object[, callback]) -- create a proxy object that weakly\n"
"references 'object'. 'callback', if given, is called with a\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 * static PyObject *
weakref_proxy(PyObject *self, PyObject *args) weakref_proxy(PyObject *self, PyObject *args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment