mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
SF patch #1379023: document that a weakref callback is not invoked if the
weakref object itself is deleted first.
This commit is contained in:
parent
037d1e0ff3
commit
b9359c402b
1 changed files with 2 additions and 2 deletions
|
|
@ -75,8 +75,8 @@ information.
|
|||
retrieved by calling the reference object if the referent is still
|
||||
alive; if the referent is no longer alive, calling the reference
|
||||
object will cause \constant{None} to be returned. If \var{callback} is
|
||||
provided and not \constant{None},
|
||||
it will be called when the object is about to be
|
||||
provided and not \constant{None}, and the returned weakref object is
|
||||
still alive, the callback will be called when the object is about to be
|
||||
finalized; the weak reference object will be passed as the only
|
||||
parameter to the callback; the referent will no longer be available.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue