summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-15 19:11:31 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-15 19:11:31 +0200
commit5ec84cd69e69739bd4ca799f611f5ec75bac6a31 (patch)
treec458d38492b464827e5aef88e20b34ae219a75f7
parent884fb1c83103576f7c29a815a733b0b2466ceec5 (diff)
downloadcpython-git-5ec84cd69e69739bd4ca799f611f5ec75bac6a31.tar.gz
Issue #14933: fix misleading doc about weakref support in extension types.
-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 f18814f1fc..5c594e81df 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -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)