summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-15 17:12:04 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-15 17:12:04 (GMT)
commita6bc4b4c85dff9ccd0f91a1e10ac107e59c487a5 (patch)
treeeaae38e4247ea58e726023c3976046366ee10a39 /Doc/extending
parent96f806bccbab50aa9af247cffd6a07d1c225827f (diff)
parent13775221e06f86b319f9591946b7ff9fb49bb907 (diff)
downloadcpython-a6bc4b4c85dff9ccd0f91a1e10ac107e59c487a5.zip
cpython-a6bc4b4c85dff9ccd0f91a1e10ac107e59c487a5.tar.gz
cpython-a6bc4b4c85dff9ccd0f91a1e10ac107e59c487a5.tar.bz2
Issue #14933: fix misleading doc about weakref support in extension types.
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 76c55fc..b90d35c 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1437,9 +1437,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)