gc — Garbage Collector — PyMOTW 3
Originally posted
· 1 min read
gc exposes the underlying memory management mechanism of Python, the automatic garbage collector. The module includes functions for controlling how the collector operates and to examine the objects known to the system, either pending collection or stuck in reference cycles and unable to be freed.
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.