mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
Issue #14933: fix misleading doc about weakref support in extension types.
This commit is contained in:
parent
884fb1c831
commit
5ec84cd69e
1 changed files with 2 additions and 3 deletions
|
@ -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
|
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
|
reference manager to clear any weak references. This is only required if the
|
||||||
other parts of the destruction have occurred, but is only required if the weak
|
weak reference list is non-*NULL*::
|
||||||
reference list is non-*NULL*::
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
instance_dealloc(PyInstanceObject *inst)
|
instance_dealloc(PyInstanceObject *inst)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue