]> granicus.if.org Git - python/commitdiff
SF patch #1379023: document that a weakref callback is not invoked if the
authorArmin Rigo <arigo@tunes.org>
Thu, 29 Dec 2005 17:43:08 +0000 (17:43 +0000)
committerArmin Rigo <arigo@tunes.org>
Thu, 29 Dec 2005 17:43:08 +0000 (17:43 +0000)
weakref object itself is deleted first.

Doc/lib/libweakref.tex

index 2f8ade0d01a2f0d7238f33b50cdcd9551d12c618..840b67412b48d8a6f7aa0d69f0de86cfb849fc74 100644 (file)
@@ -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.