Lines Matching full:generation
71 generation: int(c_default="NUM_GENERATIONS - 1") = 2
76 may be an integer specifying which generation to collect. A ValueError
77 is raised if the generation number is invalid.
83 gc_collect_impl(PyObject *module, int generation) in gc_collect_impl() argument
88 if (generation < 0 || generation >= NUM_GENERATIONS) { in gc_collect_impl()
89 _PyErr_SetString(tstate, PyExc_ValueError, "invalid generation"); in gc_collect_impl()
93 return _PyGC_Collect(tstate, generation, _Py_GC_REASON_MANUAL); in gc_collect_impl()
303 generation: Py_ssize_t(accept={int, NoneType}, c_default="-1") = None
304 Generation to extract the objects from.
308 If generation is not None, return only the objects tracked by the collector
309 that are in that generation.
313 gc_get_objects_impl(PyObject *module, Py_ssize_t generation) in gc_get_objects_impl() argument
316 if (PySys_Audit("gc.get_objects", "n", generation) < 0) { in gc_get_objects_impl()
320 if (generation >= NUM_GENERATIONS) { in gc_get_objects_impl()
322 "generation parameter must be less than the number of " in gc_get_objects_impl()
327 if (generation < -1) { in gc_get_objects_impl()
329 "generation parameter cannot be negative"); in gc_get_objects_impl()
334 return _PyGC_GetObjects(interp, (int)generation); in gc_get_objects_impl()
340 Return a list of dictionaries containing per-generation statistics.
441 Unfreeze all objects in the permanent generation.
443 Put all objects in the permanent generation back into oldest generation.
458 Return the number of objects in the permanent generation.
478 "get_stats() -- Return list of dictionaries containing per-generation stats.\n"
489 "unfreeze() -- Unfreeze all objects in the permanent generation.\n"
490 "get_freeze_count() -- Return the number of objects in the permanent generation.\n");