when does python free memory?

dman dsh8290 at rit.edu
Tue Feb 5 15:18:34 EST 2002


On Tue, Feb 05, 2002 at 08:40:12AM -0800, Robert Eanes wrote:
| Hi-
| Reading the docs and searching the list archives, it seemed that
| python should release memory as soon as the last reference to an
| object is deleted.  However, I can't seem to prove this in practice. 

It frees the memory whenever it darn well feels like (which is only
sometime after all references are gone).  Certainly the timing
semantics are different in CPython vs. Jython.

-D

-- 

Consider what God has done:
    Who can straighten what He has made crooked?
        Ecclesiastes 7:13





More information about the Python-list mailing list