• Home
  • Raw
  • Download

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
84 * ``collected`` is the total number of objects collected inside this
87 * ``uncollectable`` is the total number of objects which were found
99 The GC classifies objects into three generations depending on how many
100 collection sweeps they have survived. New objects are placed in the youngest
103 generation, objects in that generation remain there after a collection. In
128 Return the list of objects that directly refer to any of objs. This function
130 types which do refer to other objects but do not support garbage collection will
133 Note that objects which have already been dereferenced, but which live in cycles
135 resulting referrers. To get only currently live objects, call :func:`collect`
138 Care must be taken when using objects returned by :func:`get_referrers` because
146 Return a list of objects directly referred to by any of the arguments. The
147 referents returned are those objects visited by the arguments' C-level
148 :c:member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all objects actually
149 directly reachable. :c:member:`~PyTypeObject.tp_traverse` methods are supported only by objects
150 that support garbage collection, and are only required to visit objects that may
160 objects...) are. However, some type-specific optimizations can be present
182 Freeze all the objects tracked by gc - move them to a permanent generation
194 Unfreeze the objects in the permanent generation, put them back into the
202 Return the number of objects in the permanent generation.
212 A list of objects which the collector found to be unreachable but could
213 not be freed (uncollectable objects). Starting with Python 3.4, this
217 If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be
223 :const:`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects
227 Following :pep:`442`, objects with a :meth:`__del__` method don't end
247 "collected": When *phase* is "stop", the number of objects
250 "uncollectable": When *phase* is "stop", the number of objects
277 Print information on collectable objects found.
282 Print information of uncollectable objects found (objects which are not
283 reachable but cannot be freed by the collector). These objects will be added
292 When set, all unreachable objects found will be appended to *garbage* rather