summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-12-10 23:58:35 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-12-10 23:58:35 (GMT)
commitad8dcd5f1af1b2a6b64040163d011628ab4f7691 (patch)
treed27f5834b89b96f5b10fad0abbb41647026e815e /Doc
parentbd2e0c01938bf3afe3a8805e4ce9245b036fc11b (diff)
downloadcpython-ad8dcd5f1af1b2a6b64040163d011628ab4f7691.zip
cpython-ad8dcd5f1af1b2a6b64040163d011628ab4f7691.tar.gz
cpython-ad8dcd5f1af1b2a6b64040163d011628ab4f7691.tar.bz2
Minor cleanup in the gc module.
Removed gc.DEBUG_OBJECT: there is only one kind of objects. Now gc.DEBUG_COLLECTABLE or gc.DEBUG_UNCOLLECTABLE can be used alone to print the corresponding list of objects. Also removed a footnote about version 2.2, and a comment explaining some deleted code.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/gc.rst20
1 files changed, 2 insertions, 18 deletions
diff --git a/Doc/library/gc.rst b/Doc/library/gc.rst
index 4a4dfde..99504c6 100644
--- a/Doc/library/gc.rst
+++ b/Doc/library/gc.rst
@@ -131,7 +131,7 @@ value but should not rebind it):
A list of objects which the collector found to be unreachable but could not be
freed (uncollectable objects). By default, this list contains only objects with
- :meth:`__del__` methods. [#]_ Objects that have :meth:`__del__` methods and are
+ :meth:`__del__` methods. Objects that have :meth:`__del__` methods and are
part of a reference cycle cause the entire reference cycle to be uncollectable,
including objects not necessarily in the cycle but reachable only from it.
Python doesn't collect such cycles automatically because, in general, it isn't
@@ -169,18 +169,6 @@ The following constants are provided for use with :func:`set_debug`:
the ``garbage`` list.
-.. data:: DEBUG_INSTANCES
-
- When :const:`DEBUG_COLLECTABLE` or :const:`DEBUG_UNCOLLECTABLE` is set, print
- information about instance objects found.
-
-
-.. data:: DEBUG_OBJECTS
-
- When :const:`DEBUG_COLLECTABLE` or :const:`DEBUG_UNCOLLECTABLE` is set, print
- information about objects other than instance objects found.
-
-
.. data:: DEBUG_SAVEALL
When set, all unreachable objects found will be appended to *garbage* rather
@@ -191,10 +179,6 @@ The following constants are provided for use with :func:`set_debug`:
The debugging flags necessary for the collector to print information about a
leaking program (equal to ``DEBUG_COLLECTABLE | DEBUG_UNCOLLECTABLE |
- DEBUG_INSTANCES | DEBUG_OBJECTS | DEBUG_SAVEALL``).
+ DEBUG_SAVEALL``).
.. rubric:: Footnotes
-
-.. [#] Prior to Python 2.2, the list contained all instance objects in unreachable
- cycles, not only those with :meth:`__del__` methods.
-