Lines Matching refs:objects
14 and set debugging options. It also provides access to unreachable objects that
20 ``gc.DEBUG_SAVEALL``, causing garbage-collected objects to be saved in
46 unreachable objects found is returned.
68 Returns a list of all objects tracked by the collector, excluding the list
69 returned. If *generation* is not None, return only the objects tracked by
86 * ``collected`` is the total number of objects collected inside this
89 * ``uncollectable`` is the total number of objects which were found
101 The GC classifies objects into three generations depending on how many
102 collection sweeps they have survived. New objects are placed in the youngest
105 generation, objects in that generation remain there after a collection. In
130 Return the list of objects that directly refer to any of objs. This function
132 types which do refer to other objects but do not support garbage collection will
135 Note that objects which have already been dereferenced, but which live in cycles
137 resulting referrers. To get only currently live objects, call :func:`collect`
141 Care must be taken when using objects returned by :func:`get_referrers` because
151 Return a list of objects directly referred to by any of the arguments. The
152 referents returned are those objects visited by the arguments' C-level
153 :c:member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all objects actually
154 directly reachable. :c:member:`~PyTypeObject.tp_traverse` methods are supported only by objects
155 that support garbage collection, and are only required to visit objects that may
166 objects...) are. However, some type-specific optimizations can be present
209 Freeze all the objects tracked by gc - move them to a permanent generation
221 Unfreeze the objects in the permanent generation, put them back into the
229 Return the number of objects in the permanent generation.
239 A list of objects which the collector found to be unreachable but could
240 not be freed (uncollectable objects). Starting with Python 3.4, this
244 If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be
250 :const:`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects
254 Following :pep:`442`, objects with a :meth:`__del__` method don't end
274 "collected": When *phase* is "stop", the number of objects
277 "uncollectable": When *phase* is "stop", the number of objects
304 Print information on collectable objects found.
309 Print information of uncollectable objects found (objects which are not
310 reachable but cannot be freed by the collector). These objects will be added
319 When set, all unreachable objects found will be appended to *garbage* rather