summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-20 18:03:48 (GMT)
committerGuido van Rossum <guido@python.org>1996-08-20 18:03:48 (GMT)
commit1fd5b21425edb645a9afa0c0d875486eee210f36 (patch)
treedfb377223a61038a754cad9bacf6c3bd809cdf88 /Doc
parent0a94dfcab83f540a7aa8ef5bfaa1e90919ba1ebf (diff)
downloadcpython-1fd5b21425edb645a9afa0c0d875486eee210f36.zip
cpython-1fd5b21425edb645a9afa0c0d875486eee210f36.tar.gz
cpython-1fd5b21425edb645a9afa0c0d875486eee210f36.tar.bz2
Mention warning for exception in __del__.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ref/ref3.tex2
-rw-r--r--Doc/ref3.tex2
2 files changed, 4 insertions, 0 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index d1e8b63..ca3525a 100644
--- a/Doc/ref/ref3.tex
+++ b/Doc/ref/ref3.tex
@@ -627,6 +627,8 @@ reference to it. It may then be called at a later time when this new
reference is deleted. It is not guaranteed that
\code{__del__} methods are called for objects that still exist when
the interpreter exits.
+If an exception occurs in a \code{__del__} method, it is ignored, and
+a warning is printed on stderr.
\ttindex{__del__}
\stindex{del}
diff --git a/Doc/ref3.tex b/Doc/ref3.tex
index d1e8b63..ca3525a 100644
--- a/Doc/ref3.tex
+++ b/Doc/ref3.tex
@@ -627,6 +627,8 @@ reference to it. It may then be called at a later time when this new
reference is deleted. It is not guaranteed that
\code{__del__} methods are called for objects that still exist when
the interpreter exits.
+If an exception occurs in a \code{__del__} method, it is ignored, and
+a warning is printed on stderr.
\ttindex{__del__}
\stindex{del}