From: Antoine Pitrou Date: Fri, 15 Jun 2012 17:11:31 +0000 (+0200) Subject: Issue #14933: fix misleading doc about weakref support in extension types. X-Git-Tag: v3.3.0b1~211^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13775221e06f86b319f9591946b7ff9fb49bb907;p=thirdparty%2FPython%2Fcpython.git Issue #14933: fix misleading doc about weakref support in extension types. --- diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 2ba01bc53b32..8f1825383eca 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -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)