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/2002-March/021469.html below:

[Python-Dev] generalized resource alloc and de-alloc

[Python-Dev] generalized resource alloc and de-alloc [Python-Dev] generalized resource alloc and de-allocSamuele Pedroni pedroni@inf.ethz.ch
Wed, 20 Mar 2002 01:57:35 +0100
From: Greg Ewing <greg@cosc.canterbury.ac.nz>
> Here's an even simpler version:
> 
>   with LHS = EXPR:
>     BODY
> 
> is equivalent to
> 
>   LHS = EXPR
>   try:
>     BODY
>   finally:
>     del LHS

It would not work in Jython as expected, because we have no
ref counting, and gc is not deterministic.
And I think in general that adding ref counting based
feature to Python as a language (not impl) is a bad idea.

regards.




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