On Oct 26, 2005, at 12:05 PM, mario ruggier wrote: > Can I force deletion of an item from the cache myself? > I.e. for long loops on big containers, could I do something > equivalent to, but without the havoc it causes: > > if item._p_is_saved(): > del self._p_connection.cache[item._p_oid] Sounds dangerous, but it might work. You might not realize that the cache holds weak references. If your program can avoid holding references to everything as it runs, the python garbage collector will give you some space back.