Lines Matching refs:objects
13 and set debugging options. It also provides access to unreachable objects that
19 ``gc.DEBUG_SAVEALL``, causing garbage-collected objects to be saved in
45 unreachable objects found is returned.
71 Returns a list of all objects tracked by the collector, excluding the list
82 The GC classifies objects into three generations depending on how many
83 collection sweeps they have survived. New objects are placed in the youngest
86 generation, objects in that generation remain there after a collection. In
113 Return the list of objects that directly refer to any of objs. This function
115 types which do refer to other objects but do not support garbage collection will
118 Note that objects which have already been dereferenced, but which live in cycles
120 resulting referrers. To get only currently live objects, call :func:`collect`
123 Care must be taken when using objects returned by :func:`get_referrers` because
133 Return a list of objects directly referred to by any of the arguments. The
134 referents returned are those objects visited by the arguments' C-level
135 :c:member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all objects actually
136 directly reachable. :c:member:`~PyTypeObject.tp_traverse` methods are supported only by objects
137 that support garbage collection, and are only required to visit objects that may
148 objects...) are. However, some type-specific optimizations can be present
174 A list of objects which the collector found to be unreachable but could not be
175 freed (uncollectable objects). By default, this list contains only objects with
178 including objects not necessarily in the cycle but reachable only from it.
182 *garbage* list, and explicitly breaking cycles due to your objects within the
183 list. Note that these objects are kept alive even so by virtue of being in the
186 generally better to avoid the issue by not creating cycles containing objects
190 If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be added to
204 Print information on collectable objects found.
209 Print information of uncollectable objects found (objects which are not
210 reachable but cannot be freed by the collector). These objects will be added to
217 information about instance objects found.
223 information about objects other than instance objects found.
228 When set, all unreachable objects found will be appended to *garbage* rather
240 .. [#] Prior to Python 2.2, the list contained all instance objects in unreachable