Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libweakref.tex @ 31452:bb7146d117fb legacy-trunk
minor markup adjustments
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 03 Feb 2004 20:55:15 +0000 |
| parents | 97bcf2e88ceb |
| children | aec9c98a47d2 |
line wrap: on
line diff
--- a/Doc/lib/libweakref.tex Tue Feb 03 19:56:46 2004 +0000 +++ b/Doc/lib/libweakref.tex Tue Feb 03 20:55:15 2004 +0000 @@ -57,7 +57,7 @@ Return a weak reference to \var{object}. The original object can be 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 \code{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}, it will be called when the object is about to be finalized; the weak reference object will be passed as the only @@ -191,7 +191,7 @@ \end{verbatim} If the referent no longer exists, calling the reference object returns -\code{None}: +\constant{None}: \begin{verbatim} >>> del o, o2
