[Python-checkins] cpython (2.7): Issue #14933: fix misleading doc about weakref support in extension types.

antoine.pitrou python-checkins at python.org
Fri Jun 15 19:15:59 CEST 2012


http://hg.python.org/cpython/rev/0ac1f90954dc
changeset:   77441:0ac1f90954dc
branch:      2.7
parent:      77438:1c9635109079
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
@@ -1521,9 +1521,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