Commit b9359c40 authored by Armin Rigo's avatar Armin Rigo

SF patch #1379023: document that a weakref callback is not invoked if the

weakref object itself is deleted first.
parent 037d1e0f
...@@ -75,8 +75,8 @@ information. ...@@ -75,8 +75,8 @@ information.
retrieved by calling the reference object if the referent is still retrieved by calling the reference object if the referent is still
alive; if the referent is no longer alive, calling the reference alive; if the referent is no longer alive, calling the reference
object will cause \constant{None} to be returned. If \var{callback} is object will cause \constant{None} to be returned. If \var{callback} is
provided and not \constant{None}, provided and not \constant{None}, and the returned weakref object is
it will be called when the object is about to be 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 finalized; the weak reference object will be passed as the only
parameter to the callback; the referent will no longer be available. parameter to the callback; the referent will no longer be available.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment