Lines Matching refs:garbage
6 :synopsis: Interface to the cycle-detecting garbage collector.
11 This module provides an interface to the optional garbage collector. It
19 ``gc.DEBUG_SAVEALL``, causing garbage-collected objects to be saved in
20 gc.garbage for inspection.
27 Enable automatic garbage collection.
32 Disable automatic garbage collection.
59 Set the garbage collection debugging flags. Debugging information will be
79 Set the garbage collection thresholds (the collection frequency). Setting
114 will only locate those containers which support garbage collection; extension
115 types which do refer to other objects but do not support garbage collection will
119 and have not yet been collected by the garbage collector can be listed among the
137 that support garbage collection, and are only required to visit objects that may
145 Returns ``True`` if the object is currently tracked by the garbage collector,
149 in order to suppress the garbage collector footprint of simple instances
172 .. data:: garbage
182 *garbage* list, and explicitly breaking cycles due to your objects within the
184 *garbage* list, so they should be removed from *garbage* too. For example,
185 after breaking cycles, do ``del gc.garbage[:]`` to empty the list. It's
187 with :meth:`__del__` methods, and *garbage* can be examined in that case to
211 the ``garbage`` list.
228 When set, all unreachable objects found will be appended to *garbage* rather