[Python-checkins] cpython (3.2): Issue #14933: fix misleading doc about weakref support in extension types.
antoine.pitrou
python-checkins at python.org
Fri Jun 15 19:15:57 CEST 2012
http://hg.python.org/cpython/rev/69177ff1a643
changeset: 77439:69177ff1a643
branch: 3.2
parent: 77424:62030ebb2b01
user: Antoine Pitrou <solipsis at pitrou.net>
date: Fri Jun 15 19:11:31 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
@@ -1459,9 +1459,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