Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fd5b21

Browse files
committed
Mention warning for exception in __del__.
1 parent 0a94dfc commit 1fd5b21

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/ref/ref3.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,8 @@ \subsection{Special methods for any type}
627627
reference is deleted. It is not guaranteed that
628628
\code{__del__} methods are called for objects that still exist when
629629
the interpreter exits.
630+
If an exception occurs in a \code{__del__} method, it is ignored, and
631+
a warning is printed on stderr.
630632
\ttindex{__del__}
631633
\stindex{del}
632634

Doc/ref3.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,8 @@ \subsection{Special methods for any type}
627627
reference is deleted. It is not guaranteed that
628628
\code{__del__} methods are called for objects that still exist when
629629
the interpreter exits.
630+
If an exception occurs in a \code{__del__} method, it is ignored, and
631+
a warning is printed on stderr.
630632
\ttindex{__del__}
631633
\stindex{del}
632634

0 commit comments

Comments
 (0)