Objects Exempt from Python's GC Cycle Detection

Python's generational garbage collector specifically targets "container objects" for cycle detection, as immutable types like integers, floats, and strings, along with objects that don't hold references to other objects, cannot form reference cycles and thus don't require this more complex cleanup.

Sources

Open the full topic