summaryrefslogtreecommitdiffstats
path: root/Doc/ref
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-09 20:59:25 (GMT)
committerGuido van Rossum <guido@python.org>1996-08-09 20:59:25 (GMT)
commit45687bb9761be8ec84ed94b50be73953b7ef770f (patch)
tree8d119df7edaafd1ccd274eb0b88af2a3b4971ad2 /Doc/ref
parent0bbf253e97f3ad04436b26ad4ba2a539f99f1116 (diff)
downloadcpython-45687bb9761be8ec84ed94b50be73953b7ef770f.zip
cpython-45687bb9761be8ec84ed94b50be73953b7ef770f.tar.gz
cpython-45687bb9761be8ec84ed94b50be73953b7ef770f.tar.bz2
Add warning about exceptions in __del__ being ignored.
Diffstat (limited to 'Doc/ref')
-rw-r--r--Doc/ref/ref3.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index e017e26..d1e8b63 100644
--- a/Doc/ref/ref3.tex
+++ b/Doc/ref/ref3.tex
@@ -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.