]> granicus.if.org Git - python/commitdiff
Issue #14933: fix misleading doc about weakref support in extension types.
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 15 Jun 2012 17:11:31 +0000 (19:11 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 15 Jun 2012 17:11:31 +0000 (19:11 +0200)
Doc/extending/newtypes.rst

index f18814f1fc6f938a27b8ca23e6f5bc14f3532a69..5c594e81df34dd4648d1848402897397264ce47c 100644 (file)
@@ -1521,9 +1521,8 @@ The type constructor is responsible for initializing the weak reference list to
    }
 
 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)