diff Doc/lib/libweakref.tex @ 36154:963a98d8fe2e legacy-trunk

SF patch #1379023: document that a weakref callback is not invoked if the weakref object itself is deleted first.
author Armin Rigo <arigo@tunes.org>
date Thu, 29 Dec 2005 17:43:08 +0000
parents 7804bbb26492
children 728c16f16267
line wrap: on
line diff
--- a/Doc/lib/libweakref.tex	Thu Dec 29 17:07:39 2005 +0000
+++ b/Doc/lib/libweakref.tex	Thu Dec 29 17:43:08 2005 +0000
@@ -75,8 +75,8 @@
   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.