Manually prompting garbage collection

Fredrik Lundh fredrik at pythonware.com
Wed Jul 16 19:43:57 EDT 2008


Kyle Lanclos wrote:

> I want to modify the above sequence to manually prompt Python's garbage
> collection routine(s) to take over (performance is not an issue here),
> similar to the following:
> 
> Py_XDECREF (some_callback);
> PyCollect_Garbage ();
> closeService (some_service);
> return;
> 
> Is that possible?

what magic do you expect the "manual garbage collection" to do here that 
the DECREF doesn't already do?

</F>




More information about the Python-list mailing list