Finish SF patch 477059: __del__ on new classes vs. GC.

Just doc and NEWS here, about the change in gc.garbage meaning.
This commit is contained in:
Tim Peters 2001-11-03 19:57:21 +00:00
parent 7533587d43
commit 169ded0d68
2 changed files with 10 additions and 1 deletions

View file

@ -83,7 +83,11 @@ The following variable is provided for read-only access:
\begin{datadesc}{garbage}
A list of objects which the collector found to be unreachable
but could not be freed (uncollectable objects). Objects that have
but could not be freed (uncollectable objects). By default, this list
contains only objects with \method{__del__()} methods.\footnote{Prior to
Python 2.2, the list contained all instance objects in unreachable
cycles, not only those with \method{__del__()} methods.}
Objects that have
\method{__del__()} methods and create part of a reference cycle cause
the entire reference cycle to be uncollectable. If
\constant{DEBUG_SAVEALL} is set, then all unreachable objects will