[Python-Dev] Finalizers considered questionable ;)

Greg Stein gstein@lyra.org
Thu, 16 Mar 2000 04:56:21 -0800 (PST)


On Thu, 16 Mar 2000, Tim Peters wrote:
>...
> IOW, you view "the current circular references involving module globals" as
> "a design mistake" <wink>.  And perhaps they are!  I wouldn't call it a
> different topic, though:  so long as people are *viewing* shutdown __del__
> problems as just another instance of finalizers in cyclic trash, it makes
> the latter *seem* inescapably "normal", and so something that has to be
> catered to.  If you have a way to take the shutdown problems out of the
> discussion, it would help clarify both topics, at the very least by
> deconflating them.

Bah. Module globals are easy. My tp_clean suggestion handles them quite
easily at shutdown. No more special-code in import.c.

Cheers,
-g

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