A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-June/045346.html below:

Object finalization for local (ie function) scopes

[Python-Dev] Re: Object finalization for local (ie function) scopes [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4