]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mention warning for exception in __del__.
authorGuido van Rossum <guido@python.org>
Tue, 20 Aug 1996 18:03:48 +0000 (18:03 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 20 Aug 1996 18:03:48 +0000 (18:03 +0000)
Doc/ref/ref3.tex
Doc/ref3.tex

index d1e8b6395c58b53f3483d8024138be8657bb0ad7..ca3525ae068dc2155d8a16618d8882a3f53abb13 100644 (file)
@@ -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}
 
index d1e8b6395c58b53f3483d8024138be8657bb0ad7..ca3525ae068dc2155d8a16618d8882a3f53abb13 100644 (file)
@@ -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}