Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1377522

Browse files
committed
Issue #14933: fix misleading doc about weakref support in extension types.
1 parent 993fe3f commit 1377522

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Doc/extending/newtypes.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,9 +1459,8 @@ The type constructor is responsible for initializing the weak reference list to
14591459
}
14601460

14611461
The only further addition is that the destructor needs to call the weak
1462-
reference manager to clear any weak references. This should be done before any
1463-
other parts of the destruction have occurred, but is only required if the weak
1464-
reference list is non-*NULL*::
1462+
reference manager to clear any weak references. This is only required if the
1463+
weak reference list is non-*NULL*::
14651464

14661465
static void
14671466
instance_dealloc(PyInstanceObject *inst)

0 commit comments

Comments
 (0)