From: Guido van Rossum Date: Tue, 20 Aug 1996 18:03:48 +0000 (+0000) Subject: Mention warning for exception in __del__. X-Git-Tag: v1.4b3~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1fd5b21425edb645a9afa0c0d875486eee210f36;p=thirdparty%2FPython%2Fcpython.git Mention warning for exception in __del__. --- diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index d1e8b6395c58..ca3525ae068d 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 d1e8b6395c58..ca3525ae068d 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}