diff options
Diffstat (limited to 'Doc/library/gc.rst')
-rw-r--r-- | Doc/library/gc.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/gc.rst b/Doc/library/gc.rst index 722a0e8..084cd6a 100644 --- a/Doc/library/gc.rst +++ b/Doc/library/gc.rst @@ -63,11 +63,14 @@ The :mod:`gc` module provides the following functions: Return the debugging flags currently set. -.. function:: get_objects() +.. function:: get_objects(generation=None) Returns a list of all objects tracked by the collector, excluding the list - returned. + returned. If *generation* is not None, return only the objects tracked by + the collector that are in that generation. + .. versionchanged:: 3.8 + New *generation* parameter. .. function:: get_stats() |