Lines Matching refs:generation
40 .. function:: collect([generation])
42 With no arguments, run a full collection. The optional argument *generation*
43 may be an integer specifying which generation to collect (from 0 to 2). A
44 :exc:`ValueError` is raised if the generation number is invalid. The number of
48 The optional *generation* argument was added.
52 whenever a full collection or collection of the highest generation (2)
84 generation (generation ``0``). If an object survives a collection it is moved
85 into the next older generation. Since generation ``2`` is the oldest
86 generation, objects in that generation remain there after a collection. In
90 starts. Initially only generation ``0`` is examined. If generation ``0`` has
91 been examined more than *threshold1* times since generation ``1`` has been
92 examined, then generation ``1`` is examined as well. Similarly, *threshold2*
93 controls the number of collections of generation ``1`` before collecting
94 generation ``2``.