Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Doc/library/gc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ The :mod:`!gc` module provides the following functions:
returned. If *generation* is not ``None``, return only the objects tracked by
the collector that are in that generation.

.. warning::
Care must be taken when using objects returned by :func:`get_objects` because
some of them could still be under construction and hence in a temporarily
invalid state. Avoid using :func:`get_objects` for any purpose other than
debugging.

.. versionchanged:: 3.8
New *generation* parameter.

Expand Down
Loading