[Python-Dev] Re: Object finalization for local (ie function) scopes

"Martin v. Löwis" martin at v.loewis.de
Sat Jun 12 14:51:05 EDT 2004


Marcin 'Qrczak' Kowalczyk wrote:
>>If it involves looking at
>>all local variables, it might be implementable, but might cause a
>>significant slowdown even if the feature is not used.
> 
> 
> Not just inefficient but wrong: not all such objects should be
> finalized. They can have references stored elsewhere.

I understand that is the whole purpose of the requested feature:
to invoke a method on the object when a function completes,
regardless of whether there are still references to the object.

I cannot, in good faith, call this finalization.

Regards,
Martin




More information about the Python-Dev mailing list