[Python-Dev] finalization again

Greg Stein gstein@lyra.org
Thu, 9 Mar 2000 11:50:29 -0800 (PST)


On Thu, 9 Mar 2000 nascheme@enme.ucalgary.ca wrote:
>...
> If the programmer can or does not redesign their classes I don't
> think it is unreasonable to leak memory.  We can link these
> cycles to a global list of garbage or print a debugging message.
> This is a large improvement over the current situation (ie.
> leaking memory with no debugging even for cycles without
> finalizers).

I think we throw an error (as a subclass of MemoryError).

As an alternative, is it possible to move those cycles to the garbage list
and then never look at them again? That would speed up future collection
processing.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/