summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-15 17:11:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-15 17:11:31 (GMT)
commit13775221e06f86b319f9591946b7ff9fb49bb907 (patch)
tree922119791c3031313b86b1395c586fb700f37155 /Doc
parent993fe3f0357b3539f770c64ae249809981069345 (diff)
downloadcpython-13775221e06f86b319f9591946b7ff9fb49bb907.zip
cpython-13775221e06f86b319f9591946b7ff9fb49bb907.tar.gz
cpython-13775221e06f86b319f9591946b7ff9fb49bb907.tar.bz2
Issue #14933: fix misleading doc about weakref support in extension types.
Diffstat (limited to 'Doc')
-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 2ba01bc..8f18253 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)