[Python-checkins] cpython (merge 3.2 -> default): Issue #14933: fix misleading doc about weakref support in extension types.
antoine.pitrou
python-checkins at python.org
Fri Jun 15 19:15:58 CEST 2012
http://hg.python.org/cpython/rev/b17c8005e08a
changeset: 77440:b17c8005e08a
parent: 77437:593418586945
parent: 77439:69177ff1a643
user: Antoine Pitrou <solipsis at pitrou.net>
date: Fri Jun 15 19:12:04 2012 +0200
summary:
Issue #14933: fix misleading doc about weakref support in extension types.
files:
Doc/extending/newtypes.rst | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1437,9 +1437,8 @@
}
The only further addition is that the destructor needs to call the weak
-reference manager to clear any weak references. This should be done before any
-other parts of the destruction have occurred, but is only required if the weak
-reference list is non-*NULL*::
+reference manager to clear any weak references. This is only required if the
+weak reference list is non-*NULL*::
static void
instance_dealloc(PyInstanceObject *inst)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list