mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Clarify minor point about the ref() and proxy() constructors.
This matches what is already documented for corresponding feature of the C API.
This commit is contained in:
parent
ff83c2bacc
commit
4458ece4d7
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ be made to support weak references; see section \ref{weakref-extension},
|
||||||
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 \code{None} to be returned. If \var{callback} is
|
object will cause \code{None} to be returned. If \var{callback} is
|
||||||
provided, it will be called when the object is about to be
|
provided and not \constant{None},
|
||||||
|
it 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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue