Kaydet (Commit) 45687bb9 authored tarafından Guido van Rossum's avatar Guido van Rossum

Add warning about exceptions in __del__ being ignored.

üst 0bbf253e
......@@ -634,6 +634,10 @@ Note that \code{del x} doesn't directly call \code{x.__del__} --- the
former decrements the reference count for \code{x} by one, but
\code{x.__del__} is only called when its reference count reaches zero.
\strong{Warning:} due to the precarious circumstances under which
\code{__del__} methods are executed, exceptions that occur during
their execution are \emph{ignored}.
\item[{\tt __repr__(self)}]
Called by the \verb@repr()@ built-in function and by string conversions
(reverse or backward quotes) to compute the string representation of an object.
......
......@@ -634,6 +634,10 @@ Note that \code{del x} doesn't directly call \code{x.__del__} --- the
former decrements the reference count for \code{x} by one, but
\code{x.__del__} is only called when its reference count reaches zero.
\strong{Warning:} due to the precarious circumstances under which
\code{__del__} methods are executed, exceptions that occur during
their execution are \emph{ignored}.
\item[{\tt __repr__(self)}]
Called by the \verb@repr()@ built-in function and by string conversions
(reverse or backward quotes) to compute the string representation of an object.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment