summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-11-03 19:57:21 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-11-03 19:57:21 (GMT)
commit169ded0d6819f761def726deda19a35c91116674 (patch)
treedee35300f23eeb688ab1c132d9e8afcf98784362 /Doc/lib
parent7533587d4363d0841232f58d61adc15fa32b4825 (diff)
downloadcpython-169ded0d6819f761def726deda19a35c91116674.zip
cpython-169ded0d6819f761def726deda19a35c91116674.tar.gz
cpython-169ded0d6819f761def726deda19a35c91116674.tar.bz2
Finish SF patch 477059: __del__ on new classes vs. GC.
Just doc and NEWS here, about the change in gc.garbage meaning.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libgc.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/lib/libgc.tex b/Doc/lib/libgc.tex
index cfd563c..589bcb1 100644
--- a/Doc/lib/libgc.tex
+++ b/Doc/lib/libgc.tex
@@ -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