mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Mention warning for exception in __del__.
This commit is contained in:
parent
0a94dfcab8
commit
1fd5b21425
2 changed files with 4 additions and 0 deletions
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue