summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libweakref.tex
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2005-12-29 17:43:08 (GMT)
committerArmin Rigo <arigo@tunes.org>2005-12-29 17:43:08 (GMT)
commitb9359c402bdaeefbbd5408af3b29200fc85ceb18 (patch)
tree7cbaf93596bab17f1092eee7633e96620292b422 /Doc/lib/libweakref.tex
parent037d1e0ff38f4ae2867c4b90d263ecd8aa2df585 (diff)
downloadcpython-b9359c402bdaeefbbd5408af3b29200fc85ceb18.zip
cpython-b9359c402bdaeefbbd5408af3b29200fc85ceb18.tar.gz
cpython-b9359c402bdaeefbbd5408af3b29200fc85ceb18.tar.bz2
SF patch #1379023: document that a weakref callback is not invoked if the
weakref object itself is deleted first.
Diffstat (limited to 'Doc/lib/libweakref.tex')
-rw-r--r--Doc/lib/libweakref.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libweakref.tex b/Doc/lib/libweakref.tex
index 2f8ade0..840b674 100644
--- a/Doc/lib/libweakref.tex
+++ b/Doc/lib/libweakref.tex
@@ -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.