PyDocs

Nav

Python Runtime Services

garbage

gc

data
A list of objects which the collector found to be unreachable but could not be freed (uncollectable objects). Starting with Python 3.4, this list should be empty most of the time, except when using instances of C extension types with a non-NULL tp_del slot.
Changed in 3.2, 3.4
  • 3.2: If this list is non-empty at interpreter shutdown, a ResourceWarning is emitted, which is silent by default. If DEBUG_UNCOLLECTABLE is set, in addition all uncollectable objects are printed.
  • 3.4: Following PEP 442, objects with a __del__() method don’t end up in gc.garbage anymore.
0 Examples
No examples for gc/garbage.
See Also
No see-alsos for gc/garbage
0 Notes
No notes for garbage