mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Mention that DEBUG_LEAK includes DEBUG_SAVEALL. Fixes #1170460.
Will backport to 2.4.
This commit is contained in:
parent
8b8fb3db5a
commit
0f9679d2b0
1 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,9 @@ collector supplements the reference counting already used in Python, you
|
|||
can disable the collector if you are sure your program does not create
|
||||
reference cycles. Automatic collection can be disabled by calling
|
||||
\code{gc.disable()}. To debug a leaking program call
|
||||
\code{gc.set_debug(gc.DEBUG_LEAK)}.
|
||||
\code{gc.set_debug(gc.DEBUG_LEAK)}. Notice that this includes
|
||||
\code{gc.DEBUG_SAVEALL}, causing garbage-collected objects to be
|
||||
saved in gc.garbage for inspection.
|
||||
|
||||
The \module{gc} module provides the following functions:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue