Re: Manually prompting garbage collection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fredrik Lundh

    Re: Manually prompting garbage collection

    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_Garba ge ();
    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>

Working...