]> 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 2ba01bc53b32a43e5c537daef0586ac6f6032f13..8f1825383eca3772f564800f95293e2be2c4d569 100644 (file)
@@ -1459,9 +1459,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)