Lines Matching defs:generation
70 "collect($module, /, generation=2)\n"
76 "may be an integer specifying which generation to collect. A ValueError\n"
77 "is raised if the generation number is invalid.\n"
85 gc_collect_impl(PyObject *module, int generation);
91 static const char * const _keywords[] = {"generation", NULL};
95 int generation = NUM_GENERATIONS - 1;
105 generation = _PyLong_AsInt(args[0]);
106 if (generation == -1 && PyErr_Occurred()) {
110 _return_value = gc_collect_impl(module, generation);
224 "get_objects($module, /, generation=None)\n"
229 " generation\n"
232 "If generation is not None, return only the objects tracked by the collector\n"
233 "that are in that generation.");
239 gc_get_objects_impl(PyObject *module, Py_ssize_t generation);
245 static const char * const _keywords[] = {"generation", NULL};
249 Py_ssize_t generation = -1;
258 if (!_Py_convert_optional_to_ssize_t(args[0], &generation)) {
262 return_value = gc_get_objects_impl(module, generation);
272 "Return a list of dictionaries containing per-generation statistics.");
332 "Unfreeze all objects in the permanent generation.\n"
334 "Put all objects in the permanent generation back into oldest generation.");
352 "Return the number of objects in the permanent generation.");