]> granicus.if.org Git - python/commitdiff
Add warning about exceptions in __del__ being ignored.
authorGuido van Rossum <guido@python.org>
Fri, 9 Aug 1996 20:59:25 +0000 (20:59 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 9 Aug 1996 20:59:25 +0000 (20:59 +0000)
Doc/ref/ref3.tex
Doc/ref3.tex

index e017e263336085852ff6dd28cf1fcace99332def..d1e8b6395c58b53f3483d8024138be8657bb0ad7 100644 (file)
@@ -634,6 +634,10 @@ Note that \code{del x} doesn't directly call \code{x.__del__} --- the
 former decrements the reference count for \code{x} by one, but
 \code{x.__del__} is only called when its reference count reaches zero.
 
+\strong{Warning:} due to the precarious circumstances under which
+\code{__del__} methods are executed, exceptions that occur during
+their execution are \emph{ignored}.
+
 \item[{\tt __repr__(self)}]
 Called by the \verb@repr()@ built-in function and by string conversions
 (reverse or backward quotes) to compute the string representation of an object.
index e017e263336085852ff6dd28cf1fcace99332def..d1e8b6395c58b53f3483d8024138be8657bb0ad7 100644 (file)
@@ -634,6 +634,10 @@ Note that \code{del x} doesn't directly call \code{x.__del__} --- the
 former decrements the reference count for \code{x} by one, but
 \code{x.__del__} is only called when its reference count reaches zero.
 
+\strong{Warning:} due to the precarious circumstances under which
+\code{__del__} methods are executed, exceptions that occur during
+their execution are \emph{ignored}.
+
 \item[{\tt __repr__(self)}]
 Called by the \verb@repr()@ built-in function and by string conversions
 (reverse or backward quotes) to compute the string representation of an object.