]> granicus.if.org Git - python/commitdiff
Update the documentation to reflect the changes to ReferenceError.
authorFred Drake <fdrake@acm.org>
Sat, 6 Oct 2001 06:10:54 +0000 (06:10 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 6 Oct 2001 06:10:54 +0000 (06:10 +0000)
Doc/lib/libexcs.tex
Doc/lib/libweakref.tex

index 55710863ee1a7035f91d9dc70407c0c567e0a6e6..08defcc3e841c1c42b4242e051d3dfa9d0fa32ac 100644 (file)
@@ -237,6 +237,17 @@ Raised when an \keyword{assert} statement fails.
   typical applications prefer to drop bits than raise an exception.
 \end{excdesc}
 
+\begin{excdesc}{ReferenceError}
+  This exception is raised when a weak reference proxy, created by the
+  \function{\refmodule{weakref}.proxy()} function, is used to access
+  an attribute of the referent after it has been garbage collected.
+  For more information on weak references, see the \refmodule{weakref}
+  module.
+  \versionadded[Previously known as the
+                \exception{\refmodule{weakref}.ReferenceError}
+                exception]{2.2}
+\end{excdesc}
+
 \begin{excdesc}{RuntimeError}
   Raised when an error is detected that doesn't fall in any of the
   other categories.  The associated value is a string indicating what
index f5887b58fe77d9e057bdac3ab4a55dda61692ff7..d88b0516f584b08d48f74ee6597d398472e7d2d5 100644 (file)
@@ -111,7 +111,8 @@ be made to support weak references; see section \ref{weakref-extension},
 
 \begin{excdesc}{ReferenceError}
   Exception raised when a proxy object is used but the underlying
-  object has been collected.
+  object has been collected.  This is the same as the standard
+  \exception{ReferenceError} exception.
 \end{excdesc}